可以在不同的计算机上运行pythonpyqgis standalone.exe吗?

2024-04-26 11:03:24 发布

您现在位置:Python中文网/ 问答频道 /正文

我用pyqgis库在python中创建了一个独立的exe。它在我的电脑里运行得很好。但是它不能在不同的计算机上运行,也不能导入qgis库。在

应该是这样吗?在

或者我需要在其他计算机上安装qgis吗?在


Tags: 计算机exe电脑qgis计算机上安装pyqgis
1条回答
网友
1楼 · 发布于 2024-04-26 11:03:24

如果你想运行一个基于QGIS的应用程序,机器需要QGIS才能运行。在

根据the documentation(埃森克斯矿山):

When deploying custom applications using PyQGIS, there are usually two possibilities:

  • require user to install QGIS on his platform prior to installing your application. The application installer should look for default locations of QGIS libraries and allow user to set the path if not found. This approach has the advantage of being simpler, however it requires user to do more steps.
  • package QGIS together with your application. Releasing the application may be more challenging and the package will be larger, but the user will be saved from the burden of downloading and installing additional pieces of software.

相关问题 更多 >