我用pip3安装了juypter。这是pip3 show Jupiter的输出
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: /Users/myuser/Library/Python/3.8/lib/python/site-packages
Requires: notebook, ipywidgets, ipykernel, qtconsole, nbconvert, jupyter-console
Required-by: which python3和which pip3输出:
/usr/local/bin/python3
/usr/local/bin/pip3输入任何Jupiter命令时,zsh返回:command not found: jupyter
我读到我修改了§路径变量。
我试着把它都改了
export PATH=/Users/myuser/Library/Python/3.8/lib/python/site-packages
export PATH=/Users/myuser/Library/Python/3.8如果我在Finder中搜索“木星”,我可以找到一个jupyter-notebook高管并运行它。
我如何使用我的终端中的木星命令?
发布于 2020-05-15 07:31:57
您编写的两个路径定义都没有意义,因为您已经从路径中删除了标准目录。您需要找到可执行文件juypter所在的目录,然后将此目录添加到路径中。这是与您希望通过路径执行的任何其他程序相同的过程。
作为另一种选择,您始终可以通过显式指定路径来调用juypter:
/path/to/your/installed/file/juypter如果您不知道pip将文件放置在哪个目录中,则可以尝试
find / -name juypter 2>/dev/null错误重定向是可取的,因为否则您将获得大量关于find不允许cd进入的目录的错误消息。
https://stackoverflow.com/questions/61806957
复制相似问题