安装web3.py时收到错误

时间:2020-06-15 19:36:56

标签: python web3 web3py

我正在尝试通过命令web3.py安装pip install web3,但是如果没有错误,我将无法成功。

我已经尝试过关于this website的建议,但没有成功,以下是我收到的错误:

3 个答案:

答案 0 :(得分:1)

根据here in a related stackoverflow thread的建议,从here获取所需的各种滚轮文件。

在这种情况下,您似乎在cytoolz上失败了,因此您可以手动安装whl文件。

假设您正在运行64位环境,则可以下载cytoolz‑0.10.1‑cp38‑cp38‑win_amd64.whl文件,并在{h1文件}所在的目录中运行pip install cytoolz‑0.10.1‑cp38‑cp38‑win_amd64.whl

答案 1 :(得分:0)

由于您可能正在使用Windows平台,因此您需要安装https://numpy.org/doc/stable/reference/random/generated/numpy.random.uniform.html,然后将其添加到您的路径中,如果仍然无法使用,我建议您切换到Linux或使用WSL

答案 2 :(得分:0)

您可能需要安装这些软件包

sudo apt install python3-dev
sudo apt-get install libevent-dev
sudo apt update

Related answers