pip 安装模块报错解决
生活随笔
收集整理的這篇文章主要介紹了
pip 安装模块报错解决
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
系統版本 ubuntu? Kylin 16.04 LTS??????
報錯1:安裝pip3 安裝 Django 總是提示time out,無法安裝。
改用國內源:
?豆瓣源:
sudo pip3 install -i https://pypi.doubanio.com/simple/ 包名(django)?
還有其他的解決方案,如修改配置文件 [global]塊,的超時時間等
?
報錯2:
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
解決辦法:
sudo apt-get install python-dev?
?
報錯3:
_mssql.c:266:22: 致命錯誤:sqlfront.h:沒有那個文件或目錄
???? #include "sqlfront.h"
????????????????????????? ^
??? 編譯中斷。
??? error: command 'gcc' failed with exit status 1
解決方法:
?
轉載于:https://www.cnblogs.com/noube/p/6160920.html
總結
以上是生活随笔為你收集整理的pip 安装模块报错解决的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 077 Apache的HBase与cdh
- 下一篇: git conifg