한 번만 더 해보자

[Linux] Error executing Jupyter command 'notebook': [Errno 20] Not a directory 본문

Linux

[Linux] Error executing Jupyter command 'notebook': [Errno 20] Not a directory

정 하임 2024. 6. 27. 22:25

상황

jupyter notebook을 실행하려고 하는데 아래와 같은 에러 발생

 

 

에러코드

ubuntu@ip-172-31-25-159:~/jupyter $ jupyter notebook --ip 0.0.0.0 --allow-root --port 8888
/home/ubuntu/.local/lib/python3.6/site-packages/pkg_resources/__init__.py:119: PkgResourcesDeprecationWarning: 0.18ubuntu0.18.04.1 is an invalid version and will not be supported in a future release
  PkgResourcesDeprecationWarning,
Error executing Jupyter command 'notebook': [Errno 20] Not a directory

 

 

 

해결방법

ubuntu 18.01

sudo apt-get install jupyter-notebook

jupyter-notebook --ip 0.0.0.0 --allow-root --port 8888

ubuntu 20.04~

pip3 install jupyter

jupyter notebook --ip 0.0.0.0 --allow-root --port 8888

우분투 버전에 따라서 설치해야하는 라이브러리가 다르니 버전에 맞게 설치해야한다

반응형