【python】升级pip后报错解决pkg_resources.DistributionNotFound: The 'pip==7.1.0' distribution was not found and is required by the application
2017-12-27 17:57
841 查看
原本使用pip版本为7.1.0,后升级至9.0.1
之后使用pip list提示pkg_resources.DistributionNotFound: The 'pip==7.1.0' distribution was not found and is required by the application
解决方法:
vim /usr/bin/pip
-------------------
#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==7.1.0','console_scripts','pip'
__requires__ = 'pip==9.0.1'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pip==9.0.1', 'console_scripts', 'pip')()
)
-------------------
将里面pip==后面的版本改为安装的pip版本即可
之后使用pip list提示pkg_resources.DistributionNotFound: The 'pip==7.1.0' distribution was not found and is required by the application
解决方法:
vim /usr/bin/pip
-------------------
#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==7.1.0','console_scripts','pip'
__requires__ = 'pip==9.0.1'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pip==9.0.1', 'console_scripts', 'pip')()
)
-------------------
将里面pip==后面的版本改为安装的pip版本即可
相关文章推荐
- pkg_resources.DistributionNotFound: The 'idna<2.6,>=2.5' distribution was not found and is required
- 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 ...
- 解决安装MySQL-python出现的:Python version 2.7 required, which was not found in the registry
- Python version 3.4 required, which was not found in the registry.解决
- 解决安装MySQL-python出现的:Python version 2.7 required, which was not found in the registry
- Python Version 2.7 required which was not found in the registry 问题解决
- Python pip pkg_resources.DistributionNotFound
- 【转载】Python Version 2.7 required which was not found in the registry 问题解决
- 【已解决】PIL安装异常 “python version 2.7 required, which was not found in the registry.”
- 安装PIL遇到python version 2.7 required, which was not found in the registry解决办法
- Python Version 2.7 required which was not found in the registry 问题解决
- win7+py2.7+pyHook的安装,并解决Python version 2.7 required,which was not found in the registry问题
- 安装win32com报错-Python Version 2.7 required which was not found in the registry 问题解决 .
- python2安装PIL等第三方库提示Python version 2.7 required, which was not found in the registry的解决方法
- (转)Python Version 2.7 required which was not found in the registry 问题解决
- 解决Win10安装PyWin32问题Python Version 3.4 required which was not found in the registry
- [解决]在安装Python PIL 时出现错误: Python version 2.7 required, which was not found in the registry
- unbuntu pkg_resources.DistributionNotFound: The 'pip==1.5.4' distribution was not found ...
- Python Version 2.7 required which was not found in the registry 问题解决