草庐IT

在Python 3中使用“ tzwhere”模块

我正在尝试使用tzwherePython3中的模块。我想输入位置的坐标并返回时区。但是,当我运行以下代码时:!pipinstallpytz!pipinstalltzwhereimportpytzfromtzwhereimporttzwheretzwhere=tzwhere.tzwhere()timezone_str=tzwhere.tzNameAt(37.3880961,-5.9823299)print(timezone_str)#Europe/Madrid我得到这个错误:FileNotFoundError:[Errno2]Nosuchfileordirectory:'/Users/s.ray