본문 바로가기

Python

맥에서 주피터 노트북이 실행되지 않는 경우

주피터 노트북을 설치했는데 경고가 뜨면서 실행이 안되는 사태가 발생했다. 

WARNING: The script {package-name} is installed in '/Users/{user-name}/Library/Python/{version}/bin' which is not on PATH.

 

파이썬 환경 변수 추가가 안되어있어서 그렇다. 홈 디렉토리에서 환경 변수 추가해주면 해결된다. 

#export PATH="$PATH:{경고 문구에 있던 경로}"
export PATH="$PATH:/Users/{user-name}/Library/Python/{version}/bin"

 

참고

https://stackoverflow.com/questions/61026031/pip-installation-for-python3-problem-consider-adding-this-directory-to-path

 

PIP installation for Python3 problem: Consider adding this directory to PATH

I tried to install pip in python $ python get-pip.py through terminal but had this warning in Terminal. Python3.8 MacOS Catalina Please help :( . I have been trying to search for answers for ...

stackoverflow.com