从源代码构建GEOS并指向正确的Python版本

时间:2015-09-02 11:16:03

标签: python linux build geos

我正在尝试从源代码安装GEOS并使用正确的Python绑定对其进行配置(如此处http://scigeo.org/articles/howto-install-latest-geospatial-software-on-linux.html#geos所示)。我正在安装它的Linux发行版附带Python 2.6,所以在执行时:

./configure --prefix=/opt/source/geos-3.3.8/build --enable-python

它指向错误版本的Python(正如预期的那样)

checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.6/site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python2.6/site-packages

我试图通过以下方式指出正确的方向:

./configure --prefix=/opt/python/geos-3.3.8/build --enable-python=/opt/python/Python-3.4.3/python

但没有运气:

configure: error: bad value /opt/python/Python-3.4.3/python for --enable-python

无论如何(没有乱用/ usr / bin / python我可以让GEOS构建指向正确的Python版本吗?)

1 个答案:

答案 0 :(得分:1)

正如链接文章和README for GEOS中所提到的,Python版本在2006年发布时已被删除。

如果您需要使用GEOS for Python,请使用Shapely