Building wheels for collected packages: lru-dict
Building wheel for lru-dict (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
running bdist_wheel
running build
running build_ext
building 'lru' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lru-dict
Running setup.py clean for lru-dict
Failed to build lru-dict
ERROR: Could not build wheels for lru-dict, which is required to install pyproject.toml-based projects
我使用了命令 pip install
iru-dict
我也将pip更新到最新版本
您尝试过使用 Anaconda 安装 python 包吗? 如果还没有,您可以使用此 bash 脚本创建新环境:
conda create --name myenv python=3.x
conda activate myenv
conda install -c conda-forge web3