오류 모음집

우분투 jupyter 설치 / sudo pip3 install notebook 설치 오류

Tomitom 2023. 3. 15. 14:44
반응형

 

 

사용체제 Ubuntu 18.04. ver 

ROS 사용 중 Python Jupyter notebook 을 사용하기 위해 설치 도중 다음과 같은 오류 발생 

 

설치에 참고한 페이지 : 

https://www.whatwant.com/entry/Ubuntu-Jupyter-Notebook

 

Ubuntu에서 Jupyter Notebook 설치하기

나의 로컬 환경에서 Jupyter Notebook을 사용하고 싶어서 살펴봤다. 0. 실행 환경 - Ubuntu 18.04 환경에서 진행했지만, 20.04 등 다른 버전에서도 잘 될 것 같다. 1. 설치 - 가장 편한 "pip"를 이용해서 설치해

www.whatwant.com

 

sudo pip3 install notebook

 

WARNING: The directory '/home/com/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.

 

이제는 안다... Warning message 가 뜨면 감사하다는 것을.. 

해당 디렉토리의 권한과 소유자를 확인하십시오. sudo로 pip를 실행하는 경우 sudo의 -H 플래그를 사용해야 합니다.

라는 의미인데 즉 sudo -H 를 해보라는 뜻... 

 

 

에러 해결에 참고한 사이트 : 

https://askubuntu.com/questions/991734/when-i-use-sudo-pip-to-install-software-i-get-the-message-the-directory-is-n

 

When I use sudo pip to install software I get the message "the directory... is not owned by the current user"

The directory '/home/bijay/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If

askubuntu.com

 

 

Home 디렉토리의 환경이 잡히지 않은 것이 문제라고 한다. 

- H 커맨드를 넣어주면 특정 사용자의 home 디렉토리를 사용하게 된다. 

다시 커맨드 입력

 

 sudo -H pip3 install notebook

 

 

 

무탈하게 설치 되었는지 버전 확인

 

jupyter --version

 

짜란. 오류 해결... ^^.. 다음 오류를 기다리자.... 

반응형