pip로 설치 한 후 "jupyter : 명령을 찾을 수 없음"
로 설치 한 후에도 pip install jupyter
터미널에서을 찾을 수 없습니다 jupyter notebook
.
우분투는 간단히 말합니다 command not found
. 유사 ipython
. pip
제대로 설치되지 않았습니까 ? Ubuntu는와 함께 설치된 실행 파일을 찾을 위치를 어떻게 알 수 pip
있습니까?
로그 아웃하고 로그인하지 않았습니까? 실행할 경로에 있어야합니다. 그렇지 않은 경우 pip는 .local에 실행 파일을 설치 했으므로 터미널에 다음을 수행합니다.
~/.local/bin/jupyter-notebook
노트북을 시작해야합니다
jupyter notebook
터미널에서 실행할 수 있으 ~/.local/bin
려면 경로에 있는지 확인 해야합니다.
export PATH=$PATH:~/.local/bin
현재 세션에 대해 실행 하거나 끝에 해당 행을 추가하여 ~/.bashrc
향후 세션에 대해 변경 사항을 적용합니다 (예 :를 사용하여 nano ~/.bashrc
). ~ / .bashrc를 편집하는 경우 로그 아웃했다가 다시 로그인하여 변경 사항이 적용되는지 확인해야합니다.
터미널에서 실행
export PATH=~/anaconda3/bin:$PATH
Ubuntu 16.10, Python3, Anaconda3에서 나를 위해 일했습니다.
최신 정보
~ / .bashrc 또는 ~ / .zshrc (zsh bash를 사용하는 경우) 파일에 경로 추가
vi ~/.bashrc
파일에 아래 줄을 추가하십시오
PATH=~/path/to/anaconda:$PATH
다음으로 파일 닫기
esc + : + wq
둘 다 시도했는데
pip install jupyter
과
pip3 install jupyter
그러나 마침내 사용하여 완료했습니다.
sudo -H pip install jupyter
Mac OS에서는 변수 ~/.local/bin
내 에서 내 보내야합니다 $PATH
.
# Edit the bash profile:
$ vim ~/.bash_profile
# Add this line inside ~/.bash_profile:
export PATH=$PATH:~/.local/bin
# Update the source:
$ source ~/.bash_profile
# Open Jupyter:
$ jupyter notebook
Mac Os High Sierra에서 jupyter를 설치했습니다.
python3 -m pip install jupyter
그런 다음 바이너리가 다음 위치에 설치되었습니다.
/Library/Frameworks/Python.framework/Versions/3.6/bin/jupyter-notebook
Ctrl + Alt + T를 사용하여 터미널 창을 엽니 다.
gedit ~ / .profile 명령을 실행하십시오.
줄을 추가하십시오. export PATH = $ PATH : /. local / bin / jupyter-notebook. 하단에 저장합니다.
로그 아웃했다가 다시 로그인하십시오.
바라건대 이것은 작동합니다.
pip 대신 "pip3 install jupyter"를 시도하십시오. 그것은 나를 위해 일했습니다.
이 명령으로 jupyter를 실행하는 경우 :
~/.local/bin/jupyter-notebook
터미널에서이 명령을 실행하기 만하면됩니다.
export PATH=~/.local/bin:$PATH
나를 일한 유일한 것은 물론 pip3과 관련된 Python 버전을 PATH로 내보내는 것입니다. :) (많은 어려움을 겪은 후) 그냥 실행하십시오.
which pip3
다음과 같은 내용이 표시됩니다 (Mac).
/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3
이제 실행 :
export PATH=/Library/Python/3.6/bin:$PATH
그것이 당신을 위해 작동한다면 :) 그냥 당신의 bashrc
또는zshrc
'pip3'대신 'pip'를 사용하여 Python 2 용 Jupyter 노트북을 설치 한 경우 다음을 실행할 수 있습니다.
ipython notebook
"rehash"를 실행해야 jupyter 명령을 찾을 수있었습니다.
저는 Python 2.7과 함께 Mojave를 사용하고 pip install --user jupyter
있으며 바이너리가 여기에 들어간 후 :
/Users/me/Library/Python//2.7/bin/jupyter
Most generally (in case of jupyter not being in /local/bin) use,
which jupyter
Example output
~/miniconda3/bin/jupyter
to see the path for jupyter, then explicitly use that path with sudo
sudo ~/miniconda3/bin/jupyter
Here is how it worked for me The PATH for jupyter after installing it using pip is located
which pip
/usr/local/bin
so to run the jupyter notebook i just typed in my terminal:
jupyter-notebook
and it worked for me am using parrot os and installed jupyter using pip3
I compiled python3.7 from the source code, with the following command
./configure --prefix=/opt/python3.7.4 --with-ssl
make
make install
after pip3.7 install jupyter
I found the executable is under /opt/python3.7.4/bin
check my answer here Missing sqlite3 after Python3 compile to get more detail comping python3.7 and pip under ubuntu14.04
Anyone looking for running jupyter as sudo, when jupyter installed with virtualenv (without sudo) - this worked for me:
First verify this is a PATH issue:
Check if the path returned by which jupyter
is covered by the sudo user:
sudo env | grep ^PATH
(As opposed to the current user: env | grep ^PATH
)
If its not covered - add a soft link from it to one of the covered paths. For ex:
sudo ln -s /home/user/venv/bin/jupyter /usr/local/bin
Now you sould be able to run:
sudo jupyter notebook
After installation of Jupyter Notebook on Ubuntu I got below error:
Exception: Jupyter command 'jupyter-notebook' not found.
I used simple command it's working for me
pip install --upgrade --force-reinstall --no-cache-dir jupyter
After exit from root user then execute :
jupyter notebook
참고URL : https://stackoverflow.com/questions/35313876/after-installing-with-pip-jupyter-command-not-found
'program tip' 카테고리의 다른 글
인터페이스와 클래스의 차이점은 무엇이며 클래스에서 직접 메서드를 구현할 수 있는데 인터페이스를 사용해야하는 이유는 무엇입니까? (0) | 2020.08.09 |
---|---|
동시에 배열 매핑 및 필터링 (0) | 2020.08.09 |
개체를 null 대 Dispose ()로 설정 (0) | 2020.08.09 |
AngularJS로 이미지 가져 오기 요청 (0) | 2020.08.09 |
Docker Compose : 해당 이미지 없음 (0) | 2020.08.08 |