在Windows下使用python3的模块加载spacespaceite

时间:2019-03-04 17:37:55

标签: python python-3.x windows pip spatialite

我使用pip安装了spacespaceite的Python模块:

pip install spatialite

我将在https://www.gaia-gis.it/gaia-sins/index.html上找到的mod_spatialite.dll复制到了Windows / system32文件夹(我有32位Python 3)

我收到错误消息

spatialite.connection.LoadExtensionError: Failed to load SpatiaLite extension. Verify that your python module sqlite3 has load_extension support and check that libspatialite is installed. Tried extension names: mod_spatialite, mod_spatialite.so, mod_spatialite.dylib

1 个答案:

答案 0 :(得分:0)

转到此https://www.gaia-gis.it/gaia-sins/地址下载mod_spatialite,解压缩并复制到system32