在尝试了许多不同的方式安装jupyter之后,它似乎没有正确安装。
根据我最近遇到的许多MacOS系统python问题,可能与python有关
pip install jupyter --user
似乎安装正确
但是却找不到jupyter
where jupyter
jupyter not found
未找到
正在尝试在SO上找到的其他安装方法
pip install --upgrade notebook
似乎安装正确
仍未找到jupyter
where pip
/usr/local/bin/pip
要让命令行jupyter notebook
命令像这里的第一步一样工作,我可以做些什么:https://jupyter.readthedocs.io/en/latest/running.html#running
发布于 2020-01-03 05:56:16
简单的回答:使用python -m notebook
在更新到OS Catalina之后,我安装了一个酿造的python:brew install python
。它符号链接Python3,而不是python
命令,因此我将以下内容添加到我的$PATH
变量中:
/usr/local/opt/python/libexec/bin
使brew python成为默认的python命令(不要使用system python,现在已弃用python2.7 )。python -m pip install jupyter
可以工作,我可以在~/Library/Python/3.7/bin/
中找到jupyter文件,但jupyter notebook
的教程命令不起作用。相反,我只是运行python -m notebook
。
发布于 2020-03-01 22:08:12
我的MacOS安装了Python2.7,我使用brew安装了python3,然后可以使用以下命令
brew install python3
brew link --overwrite python
pip3 install ipython
python3 -m pip install jupyter
发布于 2018-07-20 20:43:30
您需要将本地python安装目录添加到您的路径中。显然,在MacOS上这不是默认的。
尝试:
export PATH="$HOME/Library/Python/<version number>/bin:$PATH"
和/或将其添加到您的~/.bashrc
。
https://stackoverflow.com/questions/45495753
复制相似问题