这个问题通常是由于升级到python2.7后执行pip产生的,解决方案是重新在python2.7环境中安装pip,步骤如下:

系统:centos7(建议用centos7,6的话需要升级的库太多,glibc也得升级,升级不好就虾米了)

第一种安装:

yum install gcc python-setuptools python-devel

easy_install pip

上面的不管的话,在用下面的方法

1.安装distribute

wget https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip --no-check-certificate

unzip distribute-0.7.3.zip

cd distribute-0.7.3

python setup.py install

2.安装setuptool

https://pypi.python.org/pypi/setuptools  下载最新版

解决并进入目录

python setup.py install

3.安装pip

easy_install pip

4.如果安装pip过程中报ImportError: No module named extern异常

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐