我通过Spyder (Python 2.7)运行了一些代码,它在我同事的mac上运行得很好,但在我的PC上我一直收到以下错误:
File "C:\Users\eawth\Miniconda2\lib\site-packages\iris\analysis\cartography.py", line 44, in <module>
DEFAULT_SPHERICAL_EARTH_RADIUS_UNIT = cf_units.Unit('m')
AttributeError: 'module' object has no attribute 'Unit'当我单击错误时,它会将我带到气象局(cartography.py)的一个文件中,并且第44行显示:
DEFAULT_SPHERICAL_EARTH_RADIUS_UNIT = cf_units.Unit('m')有什么办法可以解决这个问题吗?
谢谢!
Here is a print screen of the first part of the cartography.py file from the MET Office
Here is a print screen of my file which then draws on cartography.py
发布于 2017-07-10 18:22:28
我猜我的安装过程中出了点问题。我卸载并重新安装了所有内容,现在不再出现该错误。谢谢。
https://stackoverflow.com/questions/44901054
复制相似问题