将jupyter笔记本更新为python 3.7

时间:2019-07-12 16:40:43

标签: python jupyter-notebook

我安装了python版本3.73,但对于jupyter笔记本,我具有3.68。如何在Jupyter Notebook上将python升级到3.7+版本?

我尝试过:

 conda update jupyter

 conda upgrade notebook

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

 from platform import python_version
 print(python_version())

我得到3.68。

1 个答案:

答案 0 :(得分:0)

尝试以下代码:

conda install ipython jupyter

我在Anaconda Prompt中运行了此命令,它起作用了。安装后,请不要忘记重新启动jupyter笔记本。