Tag Archives: Command “python setup.py egg_info” failed with error code 1 in /tmp/pipbuild*

[Solved] pip Install software Error: Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build*

pip install software error: Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-*(where x is related to the software to be installed)
e.g. pip install pyparsing==1.5.7 install Error: Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-WImLdR/pyparsing/
Solution:
sudo python -m pip install –upgrade –force pip
sudo pip install setuptools==40.8.0

[Solved] Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-*

1. Overview

When I use PIP3 install paramiko, an error is reported

...
        raise DistutilsError("Setup script exited with %s" % (v.args[0],))
    distutils.errors.DistutilsError: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-23ykqx51/pynacl/

Google has tried many methods of its predecessors for a long time, and finally found the answer.

pip3 install --upgrade pip

Then execute PIP3 install paramiko, but no error is reported, and the installation is successful.