python安装库的时候Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build*

1、错误描述

pip安装软件时出现:Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-*(其中×与要安装的软件有关)

distutils.errors.DistutilsError: Command ‘[’/usr/local/anaconda3/envs/tf14/bin/python’, ‘-m’, ‘pip’, ‘–disable-pip-version-check’, ‘wheel’, ‘–no-deps’, ‘-w’, ‘/tmp/tmpnrqolq5g’, ‘–quiet’, ‘setuptools_scm’]’ returned non-zero exit status 1.

2、解决方案:

sudo python -m pip install --upgrade --force pip 
sudo pip install setuptools==33.1.1

你可能感兴趣的:(linux,python,异常)