I need a newer Version of Python to run PrivateGPT. I followed a tutorial and everything worked out ok, but Linux Mint itself doesn't work with the newer python version and runs into massive problems, like my desktop isn't shown anymore and I can't even launch the terminal anymore. That's why I had to set the standard python again as the default.
Is there a way to use a different version of python just for specific task instead of making it the default for the whole OS?
Steps to reproduce:
- Added new ppa to get current python version
sudo add-apt-repository ppa:deadsnakes/ppa - Installing Python 3.11
sudo apt install python3.11 - Installing Python 3.11 venv Virtual envoirnment
sudo apt install python3.11-venv - Setup Python3 in "update-alternatives"
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 110
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 100 - Changed the current default to 2 (screenshot below)
sudo update-alternatives --config python3
And because it did mess everything up, I changed the default back to 0