raise RuntimeError("autoconf error") RuntimeError: autoconf error
pip 安装模块时遇到下错误,没有粘贴全,差不多都是这样。这个情况是 pip 安装模块 需要 gcc 及 python-devle 支持, ubuntu 是 python-dev ,使用Yum 安装即可。
raise RuntimeError("autoconf error") RuntimeError: autoconf error
ImportError: Entry point ('console_scripts', 'pip2') not found
1 Traceback (most recent call last): 2 File "/usr/bin/pip2", line 9, in <module> 3 load_entry_point('pip==8.1.1', 'console_scripts', 'pip2')() 4 File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 542, in load_entry_point 5 return get_distribution(dist).load_entry_point(group, name) 6 File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2568, in load_entry_point 7 raise ImportError("Entry point %r not found" % ((group, name),)) 8 ImportError: Entry point ('console_scripts', 'pip2') not found
错误解决参考:
yum remove python-pip
easy_install pip
问题:AttributeError: 'EntryPoint' object has no attribute 'resolve'
解决:yum -y install python-setuptools 如果依然不行,把出现此错误的模块重新安装下试试,
更新:
pip 安装遇到 RuntimeError: maximum recursion depth exceeded ......
解决方法:
pip install setuptools 或 pip install --upgrade setuptools (如果需要)一般可以解决,如有些包依然报递归错误,还有招:
pip install Distribute 或 pip install --upgrade Distribute (如果需要)。还不成功的没遇到过了,自行研究吧。0.0
解释:Distribute is a deprecated fork of the Setuptools project