我一直收到同样的消息,上面说我需要安装Visual,但我已经有了,(也许pip不认识它?)还是安装不好?)我正在windows上运行python 3.10,还有带有python扩展的Visual 2022社区。下面是整个日志:
× Building wheel for pupil-apriltags (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [50 lines of output]
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/Jordan/AppData/Local/Temp/pip-install-bnra7vj7/pupil-apriltags_67071b5788a34192b7169db94dd696e6/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
--------------------------------------------------------------------------------
-- Trying "Visual Studio 15 2017 x64 v141" generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
--
-------
------------
-----------------
----------------------
---------------------------
--------------------------------
-- 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.10 requires Microsoft Visual Studio 2022.
Get it with "Visual Studio 2017":
https://visualstudio.microsoft.com/vs/
Or with "Visual Studio 2019":
https://visualstudio.microsoft.com/vs/
Or with "Visual Studio 2022":
https://visualstudio.microsoft.com/vs/
********************************************************************************
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pupil-apriltags
Failed to build pupil-apriltags
ERROR: Could not build wheels for pupil-apriltags, which is required to install
pyproject.toml-based projects发布于 2022-09-29 12:54:30
经过一番研究,我发现这个包只兼容python 3.6和3.7,更不用说它不适用于windows或11.在我看来,这是非常可悲的,apriltag和受托程序在总体上都在增长,出于一个很好的理由,为什么不让这个包与3.10+兼容(是否有什么改变使得它不兼容?)不管怎么说,这是我对谁制造瞳孔标签,请修理这个!
ps:我在WSLPython3.7中成功地安装了这个包。
https://stackoverflow.com/questions/73842213
复制相似问题