pok*_*man 27 python macos jupyter jupyter-notebook
我在macbook air上使用pip安装了jupyter.在尝试执行命令时jupyter notebook,我收到错误
jupyter: 'notebook' is not a Jupyter command
Run Code Online (Sandbox Code Playgroud)
我使用-h选项获取所有jupyter命令的列表,事实上,'notebook'不是命令之一.我正在运行python 2.7并且在安装jupyter之前它已经安装好了.
我在谷歌搜索,我看到一些人面对最新版本的jupyter类似的问题,但我没有看到任何解决方案.有人能指出我正确的方向吗?
which -a pip:/ usr/local/bin/pip
which -a jupyter:/ usr/local/bin/jupyter
mic*_*mic 41
我有同样的问题.在查看了大量的网页并尝试了尽可能多的解决方案后,这是唯一对我有用的东西:
pip uninstall notebook
pip install --upgrade notebook
Run Code Online (Sandbox Code Playgroud)
我不确定"升级"是否必要,但之后我就有了
jupyter-notebook
Run Code Online (Sandbox Code Playgroud)
和
jupyter notebook
Run Code Online (Sandbox Code Playgroud)
作为命令.
尝试使用以下命令从主文件夹中找出安装二进制文件的文件夹:
find . -name "jupyter"
Run Code Online (Sandbox Code Playgroud)
如果您找到任何二进制文件,请直接从该路径执行它或将该路径设置为$PATH.
小智 6
卸载 python3 和 jupyter 并使用 HomeBrew 安装它们对我来说很有效。
pip3 uninstall python3
pip3 uninstall jupyter
brew install python3
brew install jupyter
which jupyter
jupyter notebook
Run Code Online (Sandbox Code Playgroud)
在 macOS Catalina 上为我工作
当which jupyteris时,我遇到了和你一样的错误/usr/local/bin/jupyter。我设法通过更新/升级我所有的 ipython 包来解决这个问题
sudo -H pip install --upgrade "ipython[all]"
Run Code Online (Sandbox Code Playgroud)
我设法在 OS X El-Capitan 10.11.5 和 Ubuntu Linux 16.04 中解决了这个问题。我升级后的 Jupyter 版本是 4.1.0。我的 Python 是 2.7.11+。我的 Pip 版本是 8.1.2。
我找到了一个可以在我的 Mac 上解决此问题的解决方案
sudo rm -rf /Library/Frameworks/Python.framework
rm /usr/local/bin/python3*
brew uninstall python3
brew install python3
which python3
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install jupyter
which jupyter
jupyter notebook
Run Code Online (Sandbox Code Playgroud)