When importing Cartopy ImportError: DLL load failed while importing trace: The specified module could not be found
When importing Cartopy ImportError: DLL load failed while importing trace: The specified module could not be found
我在活动的虚拟环境中使用 pip 安装了 Christoph Gohlke 的预建轮 Cartopy‑0.20.2‑cp39‑cp39‑win_amd64.whl
。环境使用的是Python 3.9.5。尝试导入 Cartopy 时,我收到以下错误消息。这以前可以工作,现在不再工作了,我不明白为什么。有谁知道可能是什么问题或我遗漏了什么?
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Input In [4], in <cell line: 1>()
----> 1 import cartopy
2 import cartopy.crs as ccrs
3 import cartopy.io.img_tiles as cimgt
File ~\Downloads\GitHub\Project\venv\lib\site-packages\cartopy\__init__.py:110, in <module>
105 pass
108 # Commonly used sub-modules. Imported here to provide end-user
109 # convenience.
--> 110 import cartopy.crs
111 import cartopy.feature
File ~\Downloads\GitHub\Project\venv\lib\site-packages\cartopy\crs.py:27, in <module>
24 from pyproj.exceptions import ProjError
25 from shapely.prepared import prep
---> 27 import cartopy.trace
30 try:
31 # https://github.com/pyproj4/pyproj/pull/912
32 from pyproj.crs import CustomConstructorCRS as _CRS
ImportError: DLL load failed while importing trace: The specified module could not be found.
我在活动的虚拟环境中使用 pip 安装了 Christoph Gohlke 的预建轮 Cartopy‑0.20.2‑cp39‑cp39‑win_amd64.whl
。环境使用的是Python 3.9.5。尝试导入 Cartopy 时,我收到以下错误消息。这以前可以工作,现在不再工作了,我不明白为什么。有谁知道可能是什么问题或我遗漏了什么?
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Input In [4], in <cell line: 1>()
----> 1 import cartopy
2 import cartopy.crs as ccrs
3 import cartopy.io.img_tiles as cimgt
File ~\Downloads\GitHub\Project\venv\lib\site-packages\cartopy\__init__.py:110, in <module>
105 pass
108 # Commonly used sub-modules. Imported here to provide end-user
109 # convenience.
--> 110 import cartopy.crs
111 import cartopy.feature
File ~\Downloads\GitHub\Project\venv\lib\site-packages\cartopy\crs.py:27, in <module>
24 from pyproj.exceptions import ProjError
25 from shapely.prepared import prep
---> 27 import cartopy.trace
30 try:
31 # https://github.com/pyproj4/pyproj/pull/912
32 from pyproj.crs import CustomConstructorCRS as _CRS
ImportError: DLL load failed while importing trace: The specified module could not be found.