Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I upgrade python 2.7.8 to 2.7.9 in Anaconda without conflicting other components in its environment?

After successful installation of Anaconda on Windows 7 I realized the default Python version is 2.7.8. However I need 2.7.9. So how do I upgrade?

like image 306
Nimish Avatar asked Mar 24 '15 11:03

Nimish


People also ask

How do I enable Python 2.7 in anaconda?

Launce anaconda navigator and install spyder 3.3. 6 on both the environments Launch spyder on the environment with Python 3.6 Preferences-->Python Interpreter --> set the Python path for 2.7 Restart Spyder Done!

How do I upgrade Python already installed?

All you have to do is visit the Python downloads page and download the latest version. Clicking on the button will replace the existing version of Python with the new version. The older version will be removed from your computer. After you restart the computer, the new patch will be installed on your machine.


2 Answers

Unfortunately, you cannot update Python in the root environment of Anaconda on Windows. See https://stackoverflow.com/a/29238416/161801.

like image 175
asmeurer Avatar answered Sep 30 '22 15:09

asmeurer


Your anaconda installation ships its own package manager conda. You can use it for updating python packages and also the python interpreter.

To update the python interpreter in your default environment, all you have to do is executing the command below from command line:

conda update python
like image 38
cel Avatar answered Sep 30 '22 15:09

cel