본문 바로가기

Etc.

Jupyter 가상환경 Kernel 연결하기

ipykernel 설치

pip install ipykernel

 

Jupyter에 가상환경 추가

python -m ipykernel install --user --name [virtualEnvName] --display-name "[KernelName]"

 

(예시)

  • 다음과 같은 환경에서 가상 환경 tf를 jupyter에 추가해보자.

 

  • 가상 환경 tf를 tf라는 이름으로 jupyter에 추가
python -m ipykernel install --user --name tf --display-name "tf"

 

다음과 같이 tf라는 이름으로 jupyter에 추가된다.

'Etc.' 카테고리의 다른 글