简体   繁体   中英

Python version in Jupyter Notebook (myenv: 'conda') different terminal version and I want to update

I'm having the same issue reported in this question

But I want to update it from Python 3.7 to 3.8. I don't know how to do that!

If i check in Terminal:

Python version in Terminal

But when I check in my Jupyter Notebook:

Version of python in 'conda' env. (3.7.10)

conda install -c anaconda python=3.8
conda update --all
conda create -n py38 python=3.8

now you have a new virtual environment with name py38 with python 3.8, where you can install everything again. There is no way to update python version only in some environment.

After that you can activate this env, install jupyter, and run it.

Also, try to use anaconda navigator UI to activate environment and run jupyter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM