下面的命令集解决了所有错误。
pip3 install eth-hash
pip3 install eth-abi
pip3 install eth-account
pip3 install eth-keys
pip3 install eth-utils
pip3 install rlp
旁注:将来,要解决冲突的包依赖关系,例如,如果您收到如下错误:
The user requested eth-utils eth-abi 2.2.0 depends on eth-utils<2.0.0 and >=1.2.0 eth-keys 0.4.0 depends on eth-utils<3.0.0 and >=2.0.0
很明显,一个包需要 eth-utils<2 and the other needs eth-utils>2,所以没有中间
您需要做的就是实际上转到 eth-abi 和 eth-keys 并完全取消指定要安装的两个版本,pip 会找到满足两者且不会出现错误的最佳版本,这是解决此问题的最快方法依赖性问题