Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updating Anaconda's root Python to newer minor version on Windows does nothing

I have an Anaconda (not miniconda) Python 2.7 install on Windows. I would like to update the version of Python installed to the latest minor version (2.7.9), which I see is available in the channels that conda is configured to use. However, typing conda update python basically says:

# All requested packages already installed.
# packages in environment at C:\Anaconda:
#
python                    2.7.5                         2

How does one update to another minor version of Python on Windows? I guess that since conda is written in Python and Windows does not let you overwrite or delete open files, that might be slightly difficult to do on Windows... But is it possible?

like image 289
Christian Hudon Avatar asked Mar 23 '15 20:03

Christian Hudon


People also ask

Can I use Python 3.8 with anaconda?

Anaconda supports Python 3.7, 3.8, 3.9 and 3.10.

What version of Python is Anaconda using?

Anaconda is distributed in two different installers: Anaconda2 default environment is Python 2.7. Anaconda3 default environment is Python 3.7.

How do I change the base environment in Python?

To change your python version, you can now just type: conda install python=3.5. 0 # or maybe conda install python=2.7. 8 # or whatever you want....


Video Answer


1 Answers

You are right that Windows won't let conda update Python in the root environment. The only option is to create a new environment with conda create. Otherwise, for now, you will have to reinstall Anaconda to update the root environment Python. We are working on a way to update Python in the root environment, but it isn't finished yet.

like image 198
asmeurer Avatar answered Oct 12 '22 10:10

asmeurer