Python相关问题总结

2017-11-30  本文已影响0人  灵醒

日期:2017-11-30

今天打算把Python2.7升级到Python3.6,就重新安装了Python3.6,发现Django模块等还得重新安装。

Python3.6自带pip模块
于是安装Django:

python3 -m pip install django

结果~报错了:

Collecting django
Could not fetch URL https://pypi.python.org/simple/django/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777) - skipping

解决方案:
增加 --trusted-host

python3 -m pip install --trusted-host pypi.python.org django

成功

上一篇下一篇

猜你喜欢

热点阅读