今天在Python环境中安装eth-utils依赖包,报"web3 5.25.0 requires ipfshttpclient==0.8.0a2, but you have ipfshttpclient 0.7.0 which is incompatible.",如图(1)所示:
![](https://img-blog.csdnimg.cn/504af090d95d464a8d0c02afcf0eebe4.png)
出现这种情况的原因是,当前的web3版本比较高,需要改成低版本的web3,先卸载,再安装,命令如下:
## 卸载当前的高版本的 web3 v5.25.0
pip uninstall web3==5.25.0
## 安装低版本的 web3 v5.24.0
pip uninstall web3==5.24.0
附录
## 安装eth-utils v1.10.0
pip install eth-utils==1.10.0