Python遇到的相关错误

1、pip安装模块时发生错误

  问题:

    在linux下使用pip安装部分模块时,会发生command 'x86_64-linux-gnu-gcc' failed with exit status 1等错误

  解决方案:

    产生这个问题,主要是因为安装一个模块时会依赖其他模块,而pip又无法很好的处理依赖模块。

    查看错误提示,利用linux源自行安装对用版本的依赖模块即可

    如,安装paramiko时,会用到cryptography模块,先安装cryptography(sudo apt-get install python3-cryptography)

    

2、

posted @ 2017-05-25 16:48  youg21  阅读(162)  评论(0)    收藏  举报