ls /usr/bin/python*
sudo apt-get remove python3.5
sudo apt-get remove --auto-remove python3.5
sudo apt-get purge python3.5
sudo apt-get purge --auto-remove python3.5
sudo apt-get update
sudo apt-get install python3
Also, see https://docs.python-guide.org/starting/install3/linux/ or install python3.8 https://linuxize.com/post/how-to-install-python-3-8-on-ubuntu-18-04/
- sudo apt-get install libsqlite3-dev
- ./configure --enable-loadable-sqlite-extensions && make && sudo make install
I use different python versions (3.8, 3.10) on my ubuntu. I decided to uninstall pythion3.10.
Now, anytime I install a package with pip, it is downloaded in 'python3.10/site-packages/' not 'python3.8/site-packages/'
Does anyone know how I can resolve this? I cannot also install packages in a venv because it is always installing globally to 'python3.10/site-packages/'
Please help. Thank you for your response