我今天在mac上重新安装了jupyter,发现jupyter命令找不到了。
$ jupyter
zsh: command not found: jupyter搜索我的python(由Homebrew安装) bin目录,而不是jupyter目录。
所以我检查了包信息:
$ pip3 show -f jupyter
Name: jupyter
Version: 1.0.0
Summary: Jupyter metapackage. Install all the Jupyter components in one go.
Home-page: http://jupyter.org
Author: Jupyter Development Team
Author-email: jupyter@googlegroups.org
License: BSD
Location: /usr/local/lib/python3.7/site-packages
Requires: notebook, ipywidgets, jupyter-console, ipykernel, qtconsole, nbconvert
Required-by:
Files:
__pycache__/jupyter.cpython-37.pyc
jupyter-1.0.0.dist-info/DESCRIPTION.rst
jupyter-1.0.0.dist-info/INSTALLER
jupyter-1.0.0.dist-info/METADATA
jupyter-1.0.0.dist-info/RECORD
jupyter-1.0.0.dist-info/WHEEL
jupyter-1.0.0.dist-info/metadata.json
jupyter-1.0.0.dist-info/pbr.json
jupyter-1.0.0.dist-info/top_level.txt
jupyter.py和这里的../../../bin/jupyter完全不一样。
但我确信我可以用同样的轮子包在我的windows PC上安装%python_root%/scripts/jupyter。
那么jupyter命令是从哪里来的,我该如何修复它呢?
发布于 2019-04-25 14:09:37
感谢@hoefling。
pip uninstall jupyter && pip install jupyter什么也没做。
bin文件夹中的jupyter命令由jupyter-core包提供。
因此,如果您的jupyter包有问题,重新安装所有使用jupyter启动的包比只重新安装jupyter要好得多。
https://stackoverflow.com/questions/55803884
复制相似问题