解决Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build*错误
pip安装软件时出现:
1 | Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-*(其中×与要安装的软件有关) |
比如安装pip install pyparsing==1.5.7出现以下错误:
1 | Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-WImLdR/pyparsing/ |
解决方案:
1 | sudo python -m pip install --upgrade --force pip |