Django安装错误,咋回事
来源:2-15 python第三方模块(学会第三方安装方法)
陈同学加油
2020-05-10 02:01:52
1回答
好帮手慕觉浅
2020-05-11
同学你好:从图片来看是安装django时发生了连接超时错误,没有安装成功。
引起这种问题的原因是去国外网站下载安装包速度较慢,容易超时,因此我们可以通过更换国内源下载,例如我们使用清华源,命令如下:
pip install Django -i https://pypi.tuna.tsinghua.edu.cn/simple
这样就能安装成功了。
常用的其他国内源如下:
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
如果解决了你的疑惑,请采纳,祝学习愉快~
相似问题