update anaconda python version code example

Example 1: update anaconda

conda update --all

Example 2: ANACONDA UPDATE ALL

conda update --all

Example 3: how to downgrade python to 3.7 4 anaconda

conda install python=3.5.0

 # or maybe 

 conda install python=2.7.8

 # or whatever you want....

Example 4: How to update python using anaconda/conda

# If want to update python type
conda update python

# To update anaconda type 
conda update anaconda

# a) If you want to upgrade between major python version like 3.5 to 3.6, you'll have to do
conda install python=$pythonversion$

# b) Method 2 - Create a new environment (Better Method)
conda create --name py36 python=3.6

# c) To get the absolute latest python(3.6.5 at time of writing)
conda create --name py365 python=3.6.5 --channel conda-forge

Tags:

Misc Example