【发布时间】:2021-03-26 01:11:46
【问题描述】:
我的 python 脚本有点问题。我想导入 qgis.core 以在我的脚本中使用 qgis 函数,但我无法导入此包。
我使用 python 3.7 处理 python 虚拟环境,Qgis 也使用 python 3.7。
当我运行import qgis.core
我得到了这个答案:
No module named 'qgis'
这是正常的,因为我无法使用 conda/pip install 安装它。当我运行conda install qgis.core 时,在我的 conda shell 中,我有:
PackagesNotFoundError: The following packages are not available from current channels:
- qgis.core
有什么想法可以帮助我吗? 谢谢。
【问题讨论】:
标签: python import package python-import qgis