简体   繁体   English

Ubuntu 18.04中的PIP问题(pkg_resources.DistributionNotFound:找不到'pip == 10.0.1'分布,是应用程序所必需的)

[英]PIP issue in Ubuntu 18.04 (pkg_resources.DistributionNotFound: The 'pip==10.0.1' distribution was not found and is required by the application)

将Ubuntu 16.04 LTS升级到最新的Ubuntu 18.04 LTS后,使用pippip3面临此问题

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

What seems to solve the problem. 什么似乎解决了这个问题。
Firstly, removing pip from the computer by sudo apt-get purge python-pip and then again reinstalling it by apt-get install python-pip python-dev build-essential or just sudo apt-get install python-pip wont fix the error. 首先,通过sudo apt-get purge python-pip pip从计算机中删除pip ,然后通过apt-get install python-pip python-dev build-essential再次重新安装它,或者只是sudo apt-get install python-pip不会修复错误。 Because pip-9.0.1 is being installed by default. 因为默认安装了pip-9.0.1

Actual solution 实际解决方案
Installing using curl helped, curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py and then python get-pip.py for python 2 and python3 get-pip.py for python 3. 使用curl安装帮助, curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py然后python get-pip.py用于python 2和python3 get-pip.py用于python 3。

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

Above shell command works for me! 以上shell命令对我有用! For details, please refer to: https://stackoverflow.com/a/45887255/8596899 有关详细信息,请参阅: https//stackoverflow.com/a/45887255/8596899

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试安装 distutiles 以使用 py2exe“pkg_resources.DistributionNotFound”时出错 - Getting an error while trying to install distutiles in order to use py2exe "pkg_resources.DistributionNotFound" pkg_resources.DistributionNotFound:未找到“pipenv==2018.10.13”分发,应用程序需要该分发 - pkg_resources.DistributionNotFound: The 'pipenv==2018.10.13' distribution was not found and is required by the application Python pip pkg_resources.DistributionNotFound - Python pip pkg_resources.DistributionNotFound python pip 错误 pkg_resources.DistributionNotFound - python pip error pkg_resources.DistributionNotFound 如何修复 pkg_resources.DistributionNotFound:未找到“gcloud”发行版且应用程序需要该发行版 - How to fix pkg_resources.DistributionNotFound: The 'gcloud' distribution was not found and is required by the application pip3 说“解决 pkg_resources.DistributionNotFound:pip==1.3.1” - pip3 says “resolve pkg_resources.DistributionNotFound: pip==1.3.1” Python pip说:pkg_resources.DistributionNotFound:pip == 1.4.1 - Python pip says: pkg_resources.DistributionNotFound: pip==1.4.1 pkg_resources.DistributionNotFound:找不到“docutils”分发版,catkin-pkg 需要它 - pkg_resources.DistributionNotFound: The 'docutils' distribution was not found and is required by catkin-pkg 由于错误“ pkg_resources.DistributionNotFound: The 'psutil == 5.6.7' distribution was not found ”,无法在 Ubuntu 19.10 上运行 GNS3 的问题 - Problem not running GNS3 on Ubuntu 19.10 due to an error " pkg_resources.DistributionNotFound: The 'psutil == 5.6.7' distribution was not found " 错误:pkg_resources.DistributionNotFound:找不到'backports.functools-lru-cache'分布,并且是pylint所必需的 - Error : pkg_resources.DistributionNotFound: The 'backports.functools-lru-cache' distribution was not found and is required by pylint
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM