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