python Shapely OSError: Could not find lib c or load any of its variants []

mac 升级过后,python项目运行报错python Shapely OSError: Could not find lib c or load any of its variants []
在github上找到解决办法没记录如下:
To recap, I removed anything dealing with conda that depends on geos:

conda remove geos, shapely, cartopy

Then installed geos with brew:

brew install geos

Added Kelsey’s workaround to my .bash_profile:

export DYLD_FALLBACK_LIBRARY_PATH=$(HOME)/lib:/usr/local/lib:/lib:/usr/lib

And then pip’ed the two libraries:

pip install shapely
pip install git+git://github.com/SciTools/cartopy.git

Doing that in both the general setup and/or the scipygis virtual env seems to get cartopy to finally work.
我本地的地址如下:

export DYLD_FALLBACK_LIBRARY_PATH=/usr/local/Cellar/geos/3.8.1_1/lib:/usr/local/lib:/lib:/usr/lib
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
回答: 当出现"ERROR: Could not find a version that satisfies the requirement xxx (from versions: none)"的错误时,可能是因为没有找到与所需软件包版本匹配的可用版本。解决此问题的一种方法是检查网络连接是否正常,并尝试使用代理服务器进行安装。另外,可以尝试使用其他源来获取软件包,或者手动下载并安装所需软件包的适当版本。对于特定的软件包,可能有特定的解决方案,可以通过搜索引擎或相关文档查找更多信息。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [解决ERROR:Could not find a version that satisfies the requirement torch-fx ......found for torch-fx](https://blog.csdn.net/ZHUO__zhuo/article/details/130457145)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [ERROR: Could not find a version that satisfies the requirement PIL (from versions: none)解决方案](https://blog.csdn.net/weixin_43178406/article/details/130536747)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [【错误记录】Python 安装依赖库报错 ( ERROR: Could not find a version that satisfies the requirement ...](https://blog.csdn.net/han1202012/article/details/121004160)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值