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

一、概述

我在使用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://www.cnblogs.com/xiao987334176/p/12600835.html

作者:柒月
Q群 :2122210(嵌入式/机器学习)
原文地址:https://www.cnblogs.com/Ph-one/p/15205867.html