我正在尝试为python导入cartorpy包(版本-0.18.0)并不断遇到问题。
from cartopy import config
import cartopy.crs as ccrs
我得到错误:
Traceback (most recent call last):
File "c:\Users\Admin\Downloads\advanced_plotting-1.py", line 6, in <module>
from cartopy import config
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\cartopy\__init__.py", line 104, in <module>
import cartopy.crs
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\cartopy\crs.py", line 22, in <module>
from cartopy._crs import (CRS, Geodetic, Globe, PROJ4_VERSION,
ModuleNotFoundError: No module named 'cartopy._crs'
我认为正在发生的是当它导入它正在寻找不存在的 cartopy._crs 的函数时。在查看包 git hub https://github.com/SciTools/cartopy时,我仍然无法理解它试图指向的位置。
任何关于如何让这个包成功导入的建议将不胜感激。