【发布时间】:2022-07-26 01:37:26
【问题描述】:
我正在尝试使用“pip install web3”安装 Web3 库。 Pycharm 和 Windows
这是我得到的错误:
Building wheels for collected packages: lru-dict, bitarray, cytoolz
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: Unable to find a compatible Visual Studio installation.
[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
Building wheel for bitarray (setup.py) ... error
error: subprocess-exited-with-error
(it does the same error for the other packages: bitarray and cytoolz)
它说找不到兼容的 Visual Studio,但我已经安装了它,以及 Visual c++。
【问题讨论】:
-
你用的是什么版本的visual c++?
-
我几乎都有,但我安装的最新版本是 14.29.30139
-
尝试安装最新的Visual Studio Build Tools
-
我已经这样做了,仍然得到同样的错误