我今天在我的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: [email protected]
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
命令来自何处,我该如何解决这个问题。
感谢@hoefling。
pip uninstall jupyter && pip install jupyter
什么也没做。
jupyter
文件夹中的bin
命令由jupyter-core
包提供。
因此,如果你的jupyter
软件包有问题,重新安装所有使用jupyter
启动的软件包要比重新安装jupyter
要好得多。