【问题标题】:How do I solve this Error when installing Web3 library using pip [duplicate]使用 pip 安装 Web3 库时如何解决此错误 [重复]
【发布时间】: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
  • 我已经这样做了,仍然得到同样的错误

标签: python pycharm web3py


【解决方案1】:

终于找到答案了:

Cannot open include file: 'io.h': No such file or directory

确保您重新启动电脑

这解决了我的问题。 谢谢大家帮忙

【讨论】:

    猜你喜欢
    • 2021-12-23
    • 2021-11-29
    • 1970-01-01
    • 2019-12-20
    • 1970-01-01
    • 2022-01-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多