2016-11-07 23 views
0

虽然获得python repository权限的文档,但我强烈关注无法在ReadTheDocs(RTD)上安装软件包需求的问题。在ReadTheDocs上构建文档因需求不齐(由于libgeos)

日志说:

Searching for shapely 
Reading https://pypi.python.org/simple/shapely/ 
Best match: Shapely 1.6a1 
Downloading https://pypi.python.org/packages/83/3b/99d5d0e266c3bf5f361c76ff046a539eaf96a4e9ca1beaef5121dcaf5cdc/Shapely-1.6a1.tar.gz#md5=a2efe87371d8186f5cbeadc0c153c546 
Processing Shapely-1.6a1.tar.gz 
Writing /tmp/easy_install-7zplo9iy/Shapely-1.6a1/setup.cfg 
Running Shapely-1.6a1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-7zplo9iy/Shapely-1.6a1/egg-dist-tmp-t5eb3ob8 
Failed `CDLL(libgeos_c.so.1)` 
Failed `CDLL(libgeos_c.so)` 
error: Could not find library geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so'] 

实际的问题是,libgeos丢失在其上安装匀称需要RTD。通常,您通过sudo apt-get install libgeos-dev安装libgeos。这在RTD上不起作用。

有人对此有任何线索吗?特别是,我正在寻找一种解决方法,告诉RTD安装额外的系统软件包。我很好奇,如果这是可能的。

回答

1

RTD不支持安装额外的c库,如FAQs所述,在git上有关于此问题的discussion。 正如常见问题中所写,您只能“模拟”这些库以避免导入错误。

+0

关于此问题的另一篇文章可以在这里找到(http://blog.rtwilson.com/how-to-make-your-sphinx-documentation-compile-with-readthedocs-when-youre-using-numpy-和SciPy的/)。 – nesnoj

+0

请参阅@nesnoj的[链接](http://blog.rtwilson.com/how-to-make-your-sphinx-documentation-compile-with-readthedocs-when-youre-using-numpy-and-scipy/ )如何模拟libs。因此,我接受答案。谢谢! – gplssm

相关问题