pyhon2.7没有时区模块pytz,如果要使用时区相关的函数,需要安装pytz。在windows和mac上面没有发现这个报错,但是在使用ubuntu的时候报错了,就安装了一下。

 

实际操作

1、下载egg文档:Links for pytz

注意:下载对应的版本即可。

2、使用easy_install指令安装:

cd到对应的路径。

easy_install pytz-***-py***.egg

3、安装很快就完成了

Python之pytz
完成

注意:其他版本没有尝试。

 

 

参考:

pytz

相关文章:

  • 2021-06-12
  • 2022-02-19
  • 2021-09-17
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案