admin管理员组文章数量:1122846
i have a geodjango project with python 12 and windows 11 i have install qgis software also
in my project settings for gdal path i have
try:
# configure based on your env configuration
print(os.name)
if os.name == "nt":
# os.environ['PATH'] = os.path.join(VIRTUAL_ENV_DIR, r'.\Lib\site-packages\osgeo') + ';' + os.environ['PATH']
# os.environ['PROJ_LIB'] = os.path.join(VIRTUAL_ENV_DIR, r'.\Lib\site-packages\osgeo\data\proj') + ';' + os.environ['PATH']
# GDAL_LIBRARY_PATH = os.path.join(VIRTUAL_ENV_DIR, r'.\Lib\site-packages\osgeo\gdal304.dll')
os.environ["GDAL_LIBRARY_PATH"] = "C:\\Program Files\\QGIS 3.40.2\\bin\\gdal309.dll"
os.environ["GEOS_LIBRARY_PATH"] = "C:\\Program Files\\QGIS 3.40.2\\bin\\geos_c.dll"
GDAL_LIBRARY_PATH = "C:\\Program Files\\QGIS 3.40.2\\bin\\gdal309.dll"
GEOS_LIBRARY_PATH = "C:\\Program Files\\QGIS 3.40.2\\bin\\geos_c.dll"
except:
pass
The project runs in vscode but not with pycharm
it returns error
oserror(22, The specified procedure could not be found)
<CDLL 'C:\Program Files\QGIS 3.40.2\bin\gdal309.dll', handle 0 at 0x1cabd1bd570>
本文标签: geodjango with pycharm not works and windows 11Stack Overflow
版权声明:本文标题:geodjango with pycharm not works and windows 11 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736281178a1926237.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论