装置django时出现错误

原创
小哥 3年前 (2022-11-16) 阅读数 40 #大杂烩
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!
Couldnt 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安装成功

版权声明

所有资源都来源于爬虫采集,如有侵权请联系我们,我们将立即删除

热门