Search code examples
pythonpython-3.xwindows

WINDOWS - Could not build wheels for bottleneck which use PEP 517 and cannot be installed directly


Could not build wheels for bottleneck which use PEP 517 and cannot be installed directly

I post the answer to such error in case someone comes across it as I did.

The GitHub Thread does not solves the error for Windows.


Solution

  • As the PyPy page suggests:

    To install bottleneck on Windows, first install MinGW and add it to your system path. Then install Bottleneck with the command:

    python setup.py install --compiler=mingw32 Alternatively, you can use the Windows binaries created by Christoph Gohlke: http://www.lfd.uci.edu/~gohlke/pythonlibs/#bottleneck

    Such wheel solves the issue.