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

Jam*_*der 2 python path jupyter-notebook

我的Jupyter笔记本电脑有问题。每次我启动笔记本时,内核都会死亡。

因此,我决定使用pip卸载jupyter notebook:

pip uninstall jupyter notebook
Run Code Online (Sandbox Code Playgroud)

成功卸载后,我再次使用相同的点进行安装:

pip install jupyter notebook
Run Code Online (Sandbox Code Playgroud)

然后,像往常一样,我输入cmd:

jupyter notebook
Run Code Online (Sandbox Code Playgroud)

但是得到了这个错误:

'jupyter'无法识别为内部或外部命令,可操作程序或批处理文件。

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

谁能解释,发生了什么事,为什么现在将该文件称为jupyter-notebook?

谢谢

An0*_*n0n 6

由于pip使用旧版Python2。请使用pip3进行安装:

pip3 install --upgrade pip
pip3 install jupyter
jupyter notebook  #to start jupyter notebook
Run Code Online (Sandbox Code Playgroud)

我强烈建议安装Anaconda。在此处下载Anaconda 。

然后使用:

bash 
Run Code Online (Sandbox Code Playgroud)

安装它。

祝好运。