我安装了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。
答案 0 :(得分:0)
尝试以下代码:
conda install ipython jupyter
我在Anaconda Prompt中运行了此命令,它起作用了。安装后,请不要忘记重新启动jupyter笔记本。