安装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安装成功

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/ingenuou_/article/details/104713665