Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/358.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';t从终端打开jupyter笔记本(Python 3.6)_Python_Python 3.x_Terminal_Jupyter Notebook_Macos Sierra - Fatal编程技术网

Can';t从终端打开jupyter笔记本(Python 3.6)

Can';t从终端打开jupyter笔记本(Python 3.6),python,python-3.x,terminal,jupyter-notebook,macos-sierra,Python,Python 3.x,Terminal,Jupyter Notebook,Macos Sierra,我真的需要你的帮助,在网上进行了广泛的搜索,但我不明白为什么我不能从终端打开jupyter笔记本。如果我输入 jupyter notebook 在终端中,它显示“执行Jupyter命令'notebook'时出错:[Errno 2]没有这样的文件或目录”。所以我检查了它是否与命令一起安装 jupyter --version 结果是“4.3.0”。然后,我尝试将目录更改为config dir和data dir的路径,但两者都不起作用。所以我试着用 pip uninstall jupyter 我

我真的需要你的帮助,在网上进行了广泛的搜索,但我不明白为什么我不能从终端打开jupyter笔记本。如果我输入

jupyter notebook
在终端中,它显示“执行Jupyter命令'notebook'时出错:[Errno 2]没有这样的文件或目录”。所以我检查了它是否与命令一起安装

jupyter --version
结果是“4.3.0”。然后,我尝试将目录更改为config dir和data dir的路径,但两者都不起作用。所以我试着用

pip uninstall jupyter
我得到的结果是“无法卸载要求jupyter,未安装”。我也试着重新安装它

pip install --upgrade --force-reinstall --no-cache-dir jupyter
但也不管用

有人能帮忙吗?如何从mac上删除与python相关的所有内容,以便从零开始重新安装


谢谢你的帮助--蝙蝠侠

你运行的是像
pyenv
virtualenv
conda
one这样的环境吗?@Gilbert感谢你的回答,好吧,我几周前确实安装了e Anaconda,但不喜欢它,所以我再次卸载了它。现在我仍然需要jupyter笔记本,因此我使用终端上的
pip install jupyter notebook
安装了它。我不确定我是否需要一个环境,因为我可以在我的windows10上通过cmd运行它,没有任何问题。你在运行什么操作系统?@Gilbert MacOS Sierra(10.12.6)你在运行像
pyenv
virtualenv
conda
one这样的环境吗?@Gilbert谢谢你的回答,好吧,几周前我确实安装了e,但Anaconda不喜欢它,所以我再次卸载了它。现在我仍然需要jupyter笔记本,因此我使用终端上的
pip install jupyter notebook
安装了它。我不确定我是否需要一个环境,因为我可以从cmd在windows10上运行它,没有任何问题。你在运行什么操作系统?@Gilbert MacOS Sierra(10.12.6)