简体   繁体   English

在Windows上安装pytz时出现错误”

[英]I am getting error while installing pytz on windows "

I am getting the following error while installing pytz for python on windows: 在Windows上为python安装pytz时出现以下错误:

assert len(resources) > 10, 'zoneinfo files not found!' AssertionError: zoneinfo files not found!"

But I can see a folder named zoneinfo in pytz folder, which has files of all the countries. 但是我可以在pytz文件夹中看到一个名为zoneinfo的文件夹,其中包含所有国家的文件。 Does anyone have an idea of what can be missing? 有谁知道可能会丢失什么?

run the 跑过

python setup.py install 

from the pytz directory and not another directory. 从pytz目录而不是其他目录。 It solved the issue for me. 它为我解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM