This method is helpful in installing Python-pip packages as the normally installed packages doesnt work on the alternative packages
#View all python version installed
update-alternatives --list python
#Update Alternatives to a different version of python
update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
update-alternatives --list python
#Select the python version that you want to set as default
update-alternatives --config python
#View python version
python --version
Other Python-pip Issues
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py --force-reinstall
Comments
Post a Comment