I have taken my own answer from a similar question found here
Switching between python versions using update-alternatives:
If setting up virtual environments is not what you want to do, then you can also use update-alternatives to switch between python version. Run these two commands first, but make sure the python versions match what you have on your computer
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 2
You may then run update-alternatives with the --config option so that you may select which version you want to choose to be the default
$ sudo update-alternatives --config python
Use the interactive menu to select which version you would like to use as the default. In order to check if your changes have worked you can use python --version
adding from comments: you may have to install python-pip3 if pip no longer works after changing the default python version. install it by running sudo apt install python3-pip
python
will never be Python 3. Any app that requires python3 should have#!/usr/bin/env python3
or similar at the top of the script, or you should run it withpython3 app
. I don't know how you're installing BEE2, but it probably needs to be done so with whatever script uses python3 instead of 2. – dobey Aug 16 '19 at 19:20https://github.com/BEEmod/BEE2.4
– CStafford-14 Aug 16 '19 at 19:25update-alternatives
to set the default python version. I have provided instructions on how to do that in my answer below. – Gordster Aug 16 '19 at 23:19