问题描述
在阅读ETH教程安装的时候,直接运行 pip install "web3[tester]"
出现报错
- ERROR: Could not build wheels for pyethash, which is required to install pyproject.toml-based projects
- error: command ‘C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe’ failed with exit code 2
问题原因
我是先安装了Microsoft Visual C++2015之后出现的报错,除了文字描述,具体原因不清楚
解决方法
我直接到Pypi中找Web3.py的whl包,再pip install 包路径.whl
直接安装好的
whl包链接:https://pypi.org/project/web3/#files
然后运行
pip install 下载的包路径.whl
应该就可以了