bug宝典Python篇 pkg_resources.DistributionNotFound: The 'pip==7.1.0' distribution was not found and is
来源:互联网 发布:淘宝导航条图片 编辑:程序博客网 时间:2024/05/17 05:16
#安装piptar -zxvf pip-9.0.1.tar.gz cd pip-9.0.1python setup.py install
再执行pip --version
,提示下面的异常
[root@ceshi187 pip-9.0.1]# pip --versionTraceback (most recent call last): File "/usr/bin/pip", line 5, in <module> from pkg_resources import load_entry_point File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3038, in <module> @_call_aside File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3022, in _call_aside f(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3051, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 659, in _build_master return cls._build_from_requirements(__requires__) File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 672, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 857, in resolve raise DistributionNotFound(req, requirers)pkg_resources.DistributionNotFound: The 'pip==7.1.0' distribution was not found and is required by the application
解决方案是
1. 使用easy_install pip==7.1.0
2. 然后再安装easy_install pip==9.0.1
3. 然后删掉rm -f /usr/local/lib/python2.7/site-packages/pip-7.1.0-py2.7.egg
4. 问题就这么解决了,虽然不知道为什么会这样
阅读全文
0 0
- bug宝典Python篇 pkg_resources.DistributionNotFound: The 'pip==7.1.0' distribution was not found and is
- python:pkg_resources.DistributionNotFound: The 'pip==1.5.4' distribution was not found ...
- pkg_resources.DistributionNotFound: The 'idna<2.6,>=2.5' distribution was not found and is required
- unbuntu pkg_resources.DistributionNotFound: The 'pip==1.5.4' distribution was not found ...
- The 'pip==9.0.1' distribution was not found.
- Python pip pkg_resources.DistributionNotFound
- pkg_resources.DistributionNotFound: pip==0.8.2
- pip安装pkg_resources.DistributionNotFound: pip==9.0.1
- 错误:Easy_install and pip broke: pkg_resources.DistributionNotFound: distribute==0.6.10
- ubuntu报错: the‘webob>=1.2’distribution was not found
- bug宝典PYTHON篇 /bin/sh: mvn: command not found
- bug宝典Python篇 NameError: name 'xx' is not defined
- python easy_install 出现 pkg_resources.DistributionNotFound: 错误
- Python 2.7 is required, which was not found in the registry
- Python 2.7 is required, which was not found in the registry
- bug宝典JAVA篇 Font 'STSong-Light' is not available to the JVM
- qiime 1.8 pkg_resources.distributionNotFound:numpy==1.5.1报错
- pkg_resources.DistributionNotFound: ceilometer
- css3实现圆形加载动画的js插件
- UML 之交互图
- apk 反编译(新)
- JAVA企业面试题精选 Java SE 11-20
- 随机生成一个三位数判断是否为水仙花数
- bug宝典Python篇 pkg_resources.DistributionNotFound: The 'pip==7.1.0' distribution was not found and is
- linux
- Ubuntu
- FreeRTOS在STM32F405RGT6的移植
- POJ-3061 尺取
- Phoenix系列:原子的Upsert
- Elasticsearch概述、ES概念、什么是搜索、全文检索、Elasticsearch功能(来自网络+学习资料)
- 洛谷P2969 音符
- STM32程序移植的一些注意方法