liunx Ubuntu安装shapely时提示错误:OSError: Could not find library g
发布时间:2020-05-24 03:45:43 所属栏目:Linux 来源:互联网
导读:liunx Ubuntu安装shapely时提示错误:OSError: Could not find library geos_c or load any of its variants
|
Ubuntu安装shapely时提示错误: OSError:Couldnotfindlibrarygeos_corloadanyofitsvariants['libgeos_c.so.1','libgeos_c.so'] Command"pythonsetup.pyegg_info"failedwitherrorcode1in/tmp/pip-build-y7DK6N/Shapely/ 原因: 是缺少geos库问题导致的,可以直接使用geos的二进制包安装来解决 解决办法如下: sudoapt-getinstalllibgeos-dev 安装结果如下: (venv)pala@ubuntu:/home/trunk$sudopipinstallshapely Collectingshapely DownloadingShapely-1.5.17.post1-cp27-cp27mu-manylinux1_x86_64.whl(8.3MB) 100%|████████████████████████████████|8.3MB84kB/s Installingcollectedpackages:shapely Successfullyinstalledshapely-1.5.17.post1 (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
