加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

liunx Ubuntu安装shapely时提示错误:OSError: Could not find l

发布时间:2020-12-13 17:55:08 所属栏目:Linux 来源:网络整理
导读:Ubuntu安装shapely时提示错误: ?OSError:?Could?not?find?library?geos_c?or?load?any?of?its?variants?['libgeos_c.so.1',?'libgeos_c.so']??Command?"python?setup.py?egg_info"?failed?with?error?code?1?in?/tmp/pip-build-y7DK6N/Shapely/ 原因: ????

Ubuntu安装shapely时提示错误:

?OSError:?Could?not?find?library?geos_c?or?load?any?of?its?variants?['libgeos_c.so.1',?'libgeos_c.so']
?
?Command?"python?setup.py?egg_info"?failed?with?error?code?1?in?/tmp/pip-build-y7DK6N/Shapely/

原因:

????是缺少geos库问题导致的,可以直接使用geos的二进制包安装来解决


解决办法如下:

sudo?apt-get?install?libgeos-dev

安装结果如下:

(venv)?pala@ubuntu:/home/trunk$?sudo?pip?install?shapely
Collecting?shapely
??Downloading?Shapely-1.5.17.post1-cp27-cp27mu-manylinux1_x86_64.whl?(8.3MB)
????100%?|████████████████████████████████|?8.3MB?84kB/s?
Installing?collected?packages:?shapely
Successfully?installed?shapely-1.5.17.post1


(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读