Python3 pip3 install broken on Ubuntu Ask Question 1

Python3 pip3 install broken on Ubuntu Ask Question

sudo apt purge python3-pip  
sudo rm -rf '/usr/lib/python3/dist-packages/pip'  
sudo apt install python3-pip   
cd
cd .local/lib/python3/site-packages
sudo rm -rf pip*  
cd
cd .local/lib/python3.5/site-packages
sudo rm -rf pip*  
python3 -m pip install --user xlwt

Here is what the above code is Doing:
1. It’s removing the pip3 package from the system.
2. It’s removing the pip3 package from the user’s home directory.
3. It’s installing the pip3 package from the system.
4. It’s installing the xlwt package from the user’s home directory.

Similar Posts