安装了Python 2.7.9版本后使用PIP安装三方库老是报pip版本过低问题;
又或者老是报错提示Command "python setup.py egg_info" failed with error code。
解决方法:
首先要卸载低版本的PIP:
python -m pip unistall pip
然后再安装pip:
PIP没有了,但是easy_install还在;
可以指定pip版本进行安装。
easy_install pip==21.2.3
最后在使用PIP安装第三方库试试:
pip install xxx