我的python脚本有一个小问题。我想导入qgis.core来使用我的脚本中的qgis函数,但是我不能导入这个包。我用Python3.7开发python虚拟环境,Qgis也用Python3.7开发。当我运行import qgis.core时,我得到了这个答案:
No module named 'qgis'这是正常的,因为我不能用conda/pip install来安装它。在我的conda shell中,当我运行conda install qgis.core时,我有:
PackagesNotFoundError: The following packages are not available from current channels:
- qgis.core有什么办法可以帮我吗?谢谢。
发布于 2020-12-30 03:24:47
python

在anaconda提示中激活your_new_env (conda activate your_new_env)
安装qgis ( conda Install -c conda-forge qgis)
https://stackoverflow.com/questions/65305235
复制相似问题