首页 > 解决方案 > 将 jupyter notebook 更新到 python 3.7

问题描述

我安装了 python 3.73 版本,但对于 jupyter notebook 我有3.6.8. 如何在 jupyter notebook 上将 python 升级到 3.7+ 版本?

我试过了:

 conda update jupyter

 conda upgrade notebook

当我在虚拟环境中输入终端时 python -VI 得到 3.73 但是当我在 jupyter 中检查它时:

 from platform import python_version
 print(python_version())

我明白了3.6.8

标签: pythonjupyter-notebook

解决方案


试试下面的代码:

conda install ipython jupyter

我在 Anaconda Prompt 中运行了这个命令,它起作用了。安装后别忘了重启 jupyter notebook。


推荐阅读