conda change python version code example

Example 1: change python version in conda environment

conda install python=3.7

Example 2: how to change python version on linux

#Check available versions
ls /usr/bin/python*
#Change the used version 3.5 or 3.7 etc
alias python='/usr/bin/python3.x'
#do this other thing
. ~/.bashrc
#Check version 
python --version

Example 3: conda set python version

conda search python
 conda install python=3.6.2

Example 4: 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....