I suggest you don't mess with your system's default Python installation. If you type python -V
you should get Python 2.7.13
and python3 -V
-> Python 3.6.2
. If you change your default python path some applications such as PulseAudio equalizer won't start.
Always use virtual environments if you wish to experiment with Python.
I don't know if this method is correct but it worked for me:
You can temporarily change your version with the command export PATH=<your_python_path>:$PATH
. For example, if you have anaconda 3 installed in your home directory you should type: export PATH=~/anaconda3/bin:$PATH
. Now you'll be able to do your python 3-anaconda stuff from this terminal like starting Spyder (Spyder &
) with Python 3 instead of 2. This won't mess up your default Python settings, as it temporarily (only for this particular terminal session) changes the environmental variable PATH.