ubuntu 升級python 2.7 的pip 到20.0.2 結果無法正常使用的解決辦法

python 的pip 升級之後,遇到了下面這個錯誤

pkg_resources.DistributionNotFound: The 'pip==1.5.4' distribution was not found and is required by the application

處理方法:

sudo apt-get purge python-pip
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
pip --version
rm get-pip.py

親測有效

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章