查看已经安装的包:#pip list
安装包:#pip install 包名
pip安装软件时出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*的解决方案
问题:pip安装软件时出现:Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-*(其中×与要安装的软件有关)
比如安装pip install django出现以下错误: 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==33.1.1
pip安装时需要sudo