Command "python setup.py egg_info" failed with error code 1 in /tmp/pipbuild*解决办法

一、概述

我在使用pip3 install paramiko 的时候,出现了报错

复制代码
...
        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/
复制代码

百度了好久也试了前人的很多方法,最后终于找到了答案。

pip3 install --upgrade pip

然后再执行pip3 install paramiko,然没有报错安装成功了 。

本文参考链接:

https://blog.csdn.net/u011324454/article/details/79076885

原文地址:https://www.cnblogs.com/weifeng1463/p/15768226.html