How to set Python3.5.2 as default Python version on CentOS?

If this

sudo ln -fs /usr/bin/python3.5 /usr/bin/python

doesn’t work (it should)

you could just add an alias into your /home/.bashrcwith this command:

alias python="/usr/bin/python3.5"

and if this does not work either you should just use virtual env. Read this page to get started.

Leave a Comment