프로그래밍

파이썬 에러와 경로 잡기

drinkcode 2018. 8. 20. 14:05

These steps worked for me.

1- Uninstall the pip update from python.
2- Uninstall pip package from your Ubuntu.
3- Check that pip binary is not longer in your system.

python -m pip uninstall pip
apt remove python-pip
whereis pip

4- Download and install pip. (credits for VanDragt.com)

wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py
sudo python3 /tmp/get-pip.py
pip install --user pipenv
pip3 install --user pipenv
echo "PATH=$HOME/.local/bin:$PATH" >> ~/.profile
source ~/.profile
whereis pip

Now you should be able to install any pip package you want.