【发布时间】:2016-10-10 19:05:16
【问题描述】:
我正在使用具有 Python 2.6.6 的 CentOS 6.5,并且我还安装了 Python 2.7.5
问题是我想导入 qgis 并使用 Python 2.7.5。
如果我写的话,在 python 2.6.6 中
from qgis.core import *
没有问题,但是当我通过键入 scl enable python27 bash 并导入它返回的 moudle 尝试使用 Python 2.7 时
from qgis.core import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named qgis.core
有什么帮助吗?我尝试将安装 qgis 但不起作用的路径添加到 PYTHONPATH 中
【问题讨论】:
标签: python python-2.7 unix qgis