PWhiddy / PokemonRedExperiments

Playing Pokemon Red with Reinforcement Learning
MIT License
7.02k stars 645 forks source link

hnswlib install on windows #140

Closed HughMungis closed 1 year ago

HughMungis commented 1 year ago

got the following error message

Building wheels for collected packages: hnswlib
  Building wheel for hnswlib (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for hnswlib (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [5 lines of output]
      running bdist_wheel
      running build
      running build_ext
      building 'hnswlib' 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 hnswlib
Failed to build hnswlib
ERROR: Could not build wheels for hnswlib, which is required to install pyproject.toml-based projects

I've already installed Microsoft Visual C++ 14.0 and restarted my machine but I get the same error. tried to pip install hnswlib manually but got the same error.

Wellynounet commented 1 year ago

https://visualstudio.microsoft.com/fr/visual-cpp-build-tools/ install that

HughMungis commented 1 year ago

https://visualstudio.microsoft.com/fr/visual-cpp-build-tools/ install that

Also needed to install Visual Studio Build Tools 2022 from within that. hnswlib installed successfully

closing issue