Linux之Jupyter Notebook切换python内核

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zong596568821xp/article/details/84061355

通过pip安装

sudo python3 -m pip install --upgrade pip --force-reinstall
sudo python3 -m pip install --user jupyter

sudo python2 -m pip install --upgrade pip --force-reinstall
sudo python2 -m pip install --user jupyter

我在安装的过程中,有一个报错如下

Cannot uninstall 'ipython'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

解决方法是先手动卸载

sudo apt-get remove ipython

这样,安装完之后,运行jupyter notebook,就可以切换内核了

猜你喜欢

转载自blog.csdn.net/zong596568821xp/article/details/84061355