首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在OSX上,`jupyter`命令来自何处

在OSX上,`jupyter`命令来自何处
EN

Stack Overflow用户
提问于 2019-04-23 11:26:15
回答 1查看 57关注 0票数 0

我今天在mac上重新安装了jupyter,发现jupyter命令找不到了。

代码语言:javascript
复制
$ jupyter
zsh: command not found: jupyter

搜索我的python(由Homebrew安装) bin目录,而不是jupyter目录。

所以我检查了包信息:

代码语言:javascript
复制
$ 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命令是从哪里来的,我该如何修复它呢?

EN

回答 1

Stack Overflow用户

发布于 2019-04-25 14:09:37

感谢@hoefling。

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

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

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55803884

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档