1. 程式人生 > >python2.7使用pip安裝包一直錯誤

python2.7使用pip安裝包一直錯誤

python2.7使用pip安裝包一直錯

方法:
1、在Python的安裝目錄C:/Python27/Lib/裏找到mimetypes.py文件;
2、打開mimetypes.py文件,在import結束後添加以下代碼:
import sys
reload(sys)
sys.setdefaultencoding('gbk')


Refernce
python2.7與pip的安裝 ansii錯誤 setup.py錯誤
https://blog.csdn.net/mengziduan/article/details/70500179
python使用pip安裝包一直錯誤
https://segmentfault.com/q/1010000007127889

python2.7使用pip安裝包一直錯誤