安装django时出错

Processing dependencies for Django==3.0.4
Searching for pytz
Reading https://pypi.org/simple/pytz/
Download error on https://pypi.org/simple/pytz/: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 -- Some packages may not be found!
Couldn't find index page for 'pytz' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试 失败。 -- Some packages may not be found!
No local packages or working download links found for pytz
error: Could not find suitable distribution for Requirement.parse('pytz')

根据提示应该在官网下载 https://pypi.org/simple/pytz/
pytz-2019.3.tar.gz
解压到python3中Lib目录下,找到setup.py所在目录
在命令行下Lib目录下setup.py所在目录,输入python setup.py install
在这里插入图片描述

pytz安装成功
在这里插入图片描述

在这里插入图片描述
我在安装Django过程中总共安装了3个其他的(如上图),都是和pytz安装方式相同,安装一个,再回去试试Django安装,再根据提示安装一个,再回去试试Django安装,如此反复,直到出现下图,则表示Django安装成功

在这里插入图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值