导入cartopy.crs将显示“ OSError:[WinError 126]找不到指定的模块”

时间:2020-05-23 00:00:07

标签: python shapely cartopy

我是空间数据分析的新手。 以下是成功安装cartopy及其所有依赖项后收到的错误。 尝试import cartopy.crs as ccrs时,我花了一些时间安装了Cartopy软件包。


OSError                           Traceback (most recent call last)
<ipython-input-5-56361271a448> in <module>
      1 #import cartopy.crs as ccrs
----> 2 import cartopy.crs as ccrs ~\anaconda3\envs\Dall\lib\site-packages\cartopy\__init__.py in <module>
     94 # Commonly used sub-modules. Imported here to provide end-user
     95 # convenience.
---> 96 import cartopy.crs
     97 import cartopy.feature  # noqa: F401  (flake8 = unused import)

~\anaconda3\envs\Dall\lib\site-packages\cartopy\crs.py in <module>
     30 
     31 import numpy as np
---> 32 import shapely.geometry as sgeom
     33 from shapely.prepared import prep
     34 import six

~\anaconda3\envs\Dall\lib\site-packages\shapely\geometry\__init__.py in <module>
      2 """
      3 
----> 4 from .base import CAP_STYLE, JOIN_STYLE
      5 from .geo import box, shape, asShape, mapping
      6 from .point import Point, asPoint

~\anaconda3\envs\Dall\lib\site-packages\shapely\geometry\base.py in <module>
     16 
     17 from shapely.affinity import affine_transform
---> 18 from shapely.coords import CoordinateSequence
     19 from shapely.errors import WKBReadingError, WKTReadingError
     20 from shapely.geos import WKBWriter, WKTWriter

~\anaconda3\envs\Dall\lib\site-packages\shapely\coords.py in <module>
      6 from ctypes import byref, c_double, c_uint
      7 
----> 8 from shapely.geos import lgeos
      9 from shapely.topology import Validating
     10 

~\anaconda3\envs\Dall\lib\site-packages\shapely\geos.py in <module>
    143     if os.getenv('CONDA_PREFIX', ''):
    144         # conda package.
--> 145         _lgeos = CDLL(os.path.join(sys.prefix, 'Library', 'bin', 'geos_c.dll'))
    146     else:
    147         try:

~\anaconda3\envs\Dall\lib\ctypes\__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
    354 
    355         if handle is None:
--> 356             self._handle = _dlopen(self._name, mode)
    357         else:
    358             self._handle = handle

OSError:[WinError 126]找不到指定的模块

任何帮助将不胜感激

0 个答案:

没有答案