我按照https://pypi.org/project/pydriosm/1.0.10/的说明安装了pydriosm
运行以下命令通过jupyter笔记本导入软件包时:
import pydriosm as dri
我收到以下错误消息:
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-2-544834b2defe> in <module>
----> 1 import pydriosm as dri
~\AppData\Local\Continuum\anaconda3\lib\site-packages\pydriosm\__init__.py in <module>
1 from .download_BBBike import *
2 from .download_GeoFabrik import *
----> 3 from .dump_GeoFabrik import *
4 from .osm_psql import *
5 from .read_GeoFabrik import *
~\AppData\Local\Continuum\anaconda3\lib\site-packages\pydriosm\dump_GeoFabrik.py in <module>
15 from pydriosm.download_GeoFabrik import fetch_region_subregion_tier, retrieve_names_of_subregions_of
16 from pydriosm.download_GeoFabrik import get_default_path_to_osm_file
---> 17 from pydriosm.osm_psql import OSM
18 from pydriosm.read_GeoFabrik import parse_osm_pbf_layer_data, read_osm_pbf
19
~\AppData\Local\Continuum\anaconda3\lib\site-packages\pydriosm\osm_psql.py in <module>
5
6 import pandas as pd
----> 7 import shapely.wkt
8 import sqlalchemy
9 import sqlalchemy.engine.reflection
~\AppData\Local\Continuum\anaconda3\lib\site-packages\shapely\wkt.py in <module>
2 """
3
----> 4 from shapely import geos
5
6 # Pickle-like convenience functions
~\AppData\Local\Continuum\anaconda3\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:
~\AppData\Local\Continuum\anaconda3\lib\ctypes\__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
362
363 if handle is None:
--> 364 self._handle = _dlopen(self._name, mode)
365 else:
366 self._handle = handle
OSError: [WinError 126] The specified module could not be found
运行pip install pydriosm
我尝试谷歌搜索此问题,但找不到与我的问题匹配的任何线程