设置 QGIS 以使用 Eclipse 和 Python
Setting up QGIS to work with Eclipse and Python
我正在遵循 "QGIS Python Programming Cookbook - Adding the python interpreter to windows" 中的食谱。
我有一个 win10 64 系统,带有 QGIS2.18 和 Eclipse Oxygen.1a(4.7.1)
问题是当我尝试在 Eclipse 中为 PyQGIS 设置 Python 解释器时。 Eclipse returns 出现如下错误信息 "unable to get info on the interpreter C:\Program Files\QGIS 2.18\bin\python.exe" 该信息提示 "using an unsupported version Python...require at least version 2.1...".
我检查过,我正在使用 Python 版本 2.7.5。
谁能建议我如何解决这个问题?我猜测 QGIS 和/或 Python 和/或 eclipse 的配置存在一些冲突,但我不知道什么以及如何找到和解决问题。我可以 运行 python 在 QGIS 中编码,但有一些问题。例如,我可以创建一个记忆向量层,但它没有按预期出现在地图上 canvas。
你的问题很具体。我认为此错误不会因您的 python 版本而发生。
我也遇到了同样的错误,但在访问以下 links 错误后已解决。
建议您参考以下link。
Adding QGIS-specific Python interpreter to Eclipse?
error solved "unable to get info on the interpreter C:\Program Files\QGIS 2.18\bin\python.exe"
我正在遵循 "QGIS Python Programming Cookbook - Adding the python interpreter to windows" 中的食谱。
我有一个 win10 64 系统,带有 QGIS2.18 和 Eclipse Oxygen.1a(4.7.1)
问题是当我尝试在 Eclipse 中为 PyQGIS 设置 Python 解释器时。 Eclipse returns 出现如下错误信息 "unable to get info on the interpreter C:\Program Files\QGIS 2.18\bin\python.exe" 该信息提示 "using an unsupported version Python...require at least version 2.1...".
我检查过,我正在使用 Python 版本 2.7.5。
谁能建议我如何解决这个问题?我猜测 QGIS 和/或 Python 和/或 eclipse 的配置存在一些冲突,但我不知道什么以及如何找到和解决问题。我可以 运行 python 在 QGIS 中编码,但有一些问题。例如,我可以创建一个记忆向量层,但它没有按预期出现在地图上 canvas。
你的问题很具体。我认为此错误不会因您的 python 版本而发生。
我也遇到了同样的错误,但在访问以下 links 错误后已解决。
建议您参考以下link。
Adding QGIS-specific Python interpreter to Eclipse?
error solved "unable to get info on the interpreter C:\Program Files\QGIS 2.18\bin\python.exe"