Python 如何解决OSError:[WinError 126]导入geopandas时找不到指定的模块?
导入Geopanda时出现以下错误:Python 如何解决OSError:[WinError 126]导入geopandas时找不到指定的模块?,python,python-3.7,geopandas,Python,Python 3.7,Geopandas,导入Geopanda时出现以下错误: Traceback (most recent call last): File "C:\Users\s160873\Documents\spyder\untitled7.py", line 2, in <module> import geopandas as gpd File "C:\ProgramData\Anaconda3\lib\site-packages\geopandas\__init__.py", line 1,
Traceback (most recent call last):
File "C:\Users\s160873\Documents\spyder\untitled7.py", line 2, in <module>
import geopandas as gpd
File "C:\ProgramData\Anaconda3\lib\site-packages\geopandas\__init__.py", line 1, in <module>
from geopandas.geoseries import GeoSeries # noqa
File "C:\ProgramData\Anaconda3\lib\site-packages\geopandas\geoseries.py", line 10, in <module>
from shapely.geometry.base import BaseGeometry
File "C:\ProgramData\Anaconda3\lib\site-packages\shapely\geometry\__init__.py", line 4, in <module>
from .base import CAP_STYLE, JOIN_STYLE
File "C:\ProgramData\Anaconda3\lib\site-packages\shapely\geometry\base.py", line 18, in <module>
from shapely.coords import CoordinateSequence
File "C:\ProgramData\Anaconda3\lib\site-packages\shapely\coords.py", line 8, in <module>
from shapely.geos import lgeos
File "C:\ProgramData\Anaconda3\lib\site-packages\shapely\geos.py", line 145, in <module>
_lgeos = CDLL(os.path.join(sys.prefix, 'Library', 'bin', 'geos_c.dll'))
File "C:\ProgramData\Anaconda3\lib\ctypes\__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
回溯(最近一次呼叫最后一次):
文件“C:\Users\s160873\Documents\spyder\untitled7.py”,第2行,在
作为gpd导入geopandas
文件“C:\ProgramData\Anaconda3\lib\site packages\geopandas\\uuuu init\uuuu.py”,第1行,在
从geopandas.geoseries导入geoseries#noqa
文件“C:\ProgramData\Anaconda3\lib\site packages\geopandas\geoseries.py”,第10行,在
从shapely.geometry.base导入BaseGeometry
文件“C:\ProgramData\Anaconda3\lib\site packages\shapely\geometry\\uuuu init\uuuu.py”,第4行,在
从.base导入CAP\u样式,连接\u样式
文件“C:\ProgramData\Anaconda3\lib\site packages\shapely\geometry\base.py”,第18行,在
从shapely.coords导入坐标序列
文件“C:\ProgramData\Anaconda3\lib\site packages\shapely\coords.py”,第8行,在
从shapely.geos导入lgeos
文件“C:\ProgramData\Anaconda3\lib\site packages\shapely\geos.py”,第145行,在
_lgeos=CDLL(os.path.join(sys.prefix,'Library','bin','geos_c.dll'))
文件“C:\ProgramData\Anaconda3\lib\ctypes\\ uuuu init\uuuu.py”,第364行,在\uuu init中__
self.\u handle=\u dlopen(self.\u名称,模式)
OSError:[WinError 126]找不到指定的模块
我安装了GDAL、菲奥娜、PyPROJ、RTER和SabyLee轮子,在这里被定义为“
”。 感谢您的帮助