0

I am trying to install Web3 library using 'pip install web3'. Pycharm and Windows

This is the error I get:

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)

It says cannot find compatible Visual Studio but I have it installed, as well as visual c++.

TylerH
  • 20,799
  • 66
  • 75
  • 101
Joao Pereira
  • 75
  • 2
  • 11

1 Answers1

0

Finally I was able to find an answer:

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

MAKE SURE YOU REBOOT PC

This solved the problem for me. Thank you guys for helping

Joao Pereira
  • 75
  • 2
  • 11