【问题标题】:Where does the `jupyter` command comes from on OSXOSX 上的“jupyter”命令来自哪里
【发布时间】:2019-04-23 03:26:15
【问题描述】:

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

【问题讨论】:

  • 现在移到jupyter-core,试试pip3 show -f jupyter-core
  • 你是如何安装 Jupyter 的?
  • @hoefling,是的!这就是问题所在,这里列出了../../../bin/jupyter

标签: python pip jupyter setuptools


【解决方案1】:

感谢@hoefling。

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

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

因此,如果您的 jupyter 包有问题,重新安装所有以 jupyter 开头的包比重新安装 jupyter 好得多。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-04
    • 1970-01-01
    • 2012-03-11
    • 1970-01-01
    • 2010-09-21
    相关资源
    最近更新 更多