我已经安装了jupyter笔记本,但当我试图打开它时,我得到了这个错误。知道为什么吗?
Traceback (most recent call last):
File "/usr/local/bin/jupyter", line 8, in <module>
sys.exit(main())
File "/Library/Python/2.7/site-packages/jupyter_core/command.py", line 247, in main
command = _jupyter_abspath(subcommand)
File "/Library/Python/2.7/site-packages/jupyter_core/command.py", line 134, in _jupyter_abspath
'Jupyter command `{}` not found.'.format(jupyter_subcommand)
Exception: Jupyter command `jupyter-notebook` not found.发布于 2020-01-09 09:52:20
一种解决方案是切换到python3。
我建议通过运行python3 --version来检查是否安装了python3
如果安装了Python3,pip3 install --upgrade pip和pip3 install jupyter应该可以解决您的问题,因为在安装之后,jupyter应该在内核中使用Python3。
如果没有安装python3,我建议您安装它,然后重复上面的步骤。
发布于 2020-05-20 06:02:03
不在上面!1-运行<< brew cask在终端上安装anaconda >>
在成功安装anaconda之后...
2-在终端上运行本地导出PATH=“/usr/ << /anaconda3/bin:$PATH”>>
3-在终端上运行<<源文件~/.zshrc >>,然后关闭然后再次打开终端
4-现在在终端上运行<< jupyter notebook >>
现在notebook将显示在此路径上:http://localhost:8888/tree
就这样
https://stackoverflow.com/questions/59167984
复制相似问题