pupil-labs / apriltags

Python bindings for the apriltags3 library
https://pupil-apriltags.readthedocs.io/en/latest/index.html
Other
107 stars 30 forks source link

Failed building wheel for pupil-apriltags #41

Closed pinhaocheng closed 3 years ago

pinhaocheng commented 3 years ago

Hello there,

It seems like this repo is able to support apriltags on windows, however, I faced some difficulties when installing it on VS code (windows 10).

It seems like it's stuck at the building wheel step.

I am using the pip install pupil-apriltags method, with the latest python 3.9.6 and pip 21.2.3.

Details:

Building wheel for pupil-apriltags (PEP 517) ... error

  Complete output (46 lines):
  Not searching for unused variables given on the command line.
  CMake Error at CMakeLists.txt:2 (PROJECT):
    Generator

      Visual Studio 15 2017

    could not find any instance of Visual Studio.

  -- Configuring incomplete, errors occurred!
  See also "C:/Users/user/AppData/Local/Temp/pip-req-build-9qtru2dv/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".       

  -- Trying "Visual Studio 15 2017 x64 v141" generator - failure

  scikit-build could not get a working generator for your system. Aborting build.

  Building windows wheels for Python 3.9 requires Microsoft Visual Studio 2019.
  Get it with "Visual Studio 2017":

    https://visualstudio.microsoft.com/vs/

  Or with "Visual Studio 2019":

    https://visualstudio.microsoft.com/vs/

  ERROR: Failed building wheel for pupil-apriltags
Failed to build pupil-apriltags
ERROR: Could not build wheels for pupil-apriltags which use PEP 517 and cannot be installed directly

Any help provided would be greatly appreciated!

ejs94 commented 3 years ago

I've already had this problem, it was necessary to install Visual Studio in order to install the library.

Building windows wheels for Python 3.9 requires Microsoft Visual Studio 2019. Get it with "Visual Studio 2017": Or with "Visual Studio 2019": https://visualstudio.microsoft.com/vs/

pinhaocheng commented 3 years ago

@ejs94

I already have Visual Studio 2019 installed. I found this thread, and this video. I have followed what they did but I have no luck building the wheel still.

Did you do anything differently? I might be missing something that I didn't notice.

mark-belbin commented 3 years ago

I had to downgrade to python 3.7 for this to work, had the same issues on 3.9!

pinhaocheng commented 3 years ago

Thanks @mark-belbin!

Downgraded to python 3.7.9 and it's working now.