Python 使用pip的jupyter笔记本安装问题

Python 使用pip的jupyter笔记本安装问题,python,path,jupyter-notebook,Python,Path,Jupyter Notebook,我的jupyter笔记本有问题。每次我启动笔记本,内核都会死掉 因此,我决定使用pip卸载jupyter笔记本: pip uninstall jupyter notebook 成功卸载后,我使用相同的pip再次安装: pip install jupyter notebook 然后,像往常一样,我输入了cmd: jupyter notebook 但我犯了这个错误: “jupyter”不被识别为内部或外部命令, 可操作的程序或批处理文件。 因此,我检查了IPython的位置,发现现在我要调用的

我的jupyter笔记本有问题。每次我启动笔记本,内核都会死掉

因此,我决定使用pip卸载jupyter笔记本:

pip uninstall jupyter notebook
成功卸载后,我使用相同的pip再次安装:

pip install jupyter notebook
然后,像往常一样,我输入了cmd:

jupyter notebook
但我犯了这个错误:

“jupyter”不被识别为内部或外部命令, 可操作的程序或批处理文件。

因此,我检查了IPython的位置,发现现在我要调用的正确文件是jupyter notebook,它与jupyter notebook的破折号不同。如果我从cmd运行jupyter notebook,一切正常

有人能解释一下,发生了什么,为什么这个文件现在被称为jupyter笔记本


谢谢

,因为pip使用的是传统的Python 2。 使用pip3安装:

pip3 install --upgrade pip
pip3 install jupyter
jupyter notebook  #to start jupyter notebook
我强烈建议安装水蟒。 下载蟒蛇

然后使用:

bash 
安装它


祝你好运。

我建议你总是使用conda而不是pip来安装Jupyter笔记本电脑。 例如,在您的情况下,我建议:

conda install jupyter notebook 

而不是
pip安装jupyter笔记本
我可以看到,您在那里描述的大多数问题都与环境有关,因此,在使用pip安装jupyter时,您经常会遇到环境问题,而不安装Anaconda或conda:

sudo easy_install pip==20.3.4
pip2 install virtualenv
virtualenv jupyter
source jupyter/bin/activate
pip2 install jupyter
jupyter notebook
此解决方案在以下位置进行了测试:
分发服务器ID:Ubuntu
说明:Ubuntu 16.04.7 LTS
发布日期:16.04
代号:xenial

它在32位Chromenotebook上运行,xenial上安装了Firefox vs NetSurf

Jupyter笔记本将自动打开。然而,每次再次登录木星时,首先需要激活源:

source jupyter/bin/activate
然后:

jupyter notebook
开始


@SuatAtanPhD得出同样的结果。我只是好奇为什么语法会发生变化。另外,如果您试图重新安装jupyter笔记本,请确保先卸载它
pip3卸载jupyter笔记本
。然后
pip3安装jupyter笔记本
。这在最新版本中对我有效。