使用pip [duplicate]安装Web3库时如何解决此错误

vohkndzv  于 2022-11-08  发布在  PyCharm
关注(0)|答案(1)|浏览(240)

此问题在此处已有答案

Cannot open include file: 'io.h': No such file or directory(17个答案)
9个月前关闭。
我正在尝试使用“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++。

zwghvu4y

zwghvu4y1#

最后我终于找到了一个答案:
无法打开包含文件:'io.h':没有这样的档案或目录

确保重新启动PC

这就解决了我的问题。谢谢你们的帮助

相关问题