轉:https://blog.csdn.net/u011092188/article/details/64123561
pip安裝軟件時出現:Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-*(其中×與要安裝的軟件有關)
比如安裝pip install pyparsing==1.5.7出現以下錯誤: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-WImLdR/pyparsing/
解決方案
sudo python -m pip install --upgrade --force pip
sudo pip install setuptools==40.8.0