`jupyter`命令来自OSX

问题描述 投票:0回答:1

我今天在我的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命令来自何处,我该如何解决这个问题。

python pip jupyter setuptools
1个回答
0
投票

感谢@hoefling。

pip uninstall jupyter && pip install jupyter什么也没做。

jupyter文件夹中的bin命令由jupyter-core包提供。

因此,如果你的jupyter软件包有问题,重新安装所有使用jupyter启动的软件包要比重新安装jupyter要好得多。

© www.soinside.com 2019 - 2024. All rights reserved.