pip 安裝模塊時遇到下錯誤,沒有粘貼全,差很少都是這樣。這個狀況是 pip 安裝模塊 須要 gcc 及 python-devle 支持, ubuntu 是 python-dev ,使用Yum 安裝便可。python
raise RuntimeError("autoconf error") RuntimeError: autoconf errorubuntu
ImportError: Entry point ('console_scripts', 'pip2') not found python2.7
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
錯誤解決參考:spa
yum remove python-pipcode
easy_install pipblog
解決:yum -y install python-setuptools 若是依然不行,把出現此錯誤的模塊從新安裝下試試,遞歸
更新:ip
pip 安裝遇到 RuntimeError: maximum recursion depth exceeded ......ci
解決方法:rem
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