OpenCV Python PIP安装损坏?



win10 x64 Python 3.6

我试图将最新版本的opencv-contrib-python从PyPi安装到conda环境中。我昨天做这件事没有问题,但今天它坏了。

在我激活的环境中,从conda命令行(作为Admin),我尝试了

pip install opencv-contrib-python
pip install opencv-contrib-python --user
pip install opencv-python
pip install opencv-python --user

都抛出相同的页面&满页的错误。一些highights,

ERROR: Command errored out with exit status 1:
command: 'C:ProgramDataAnaconda3envsgenicampython.exe' 'C:ProgramDataAnaconda3envsgenicamlibsite-packagespip_vendorpep517in_process_in_process.py' build_wheel 'C:UsersNICBWT~1AppDataLocalTemptmp98_vz8u5'
cwd: C:UsersNICBWT~1AppDataLocalTemppip-install-71z9rl7topencv-contrib-python_387a51900d48422f8ed4ed222402118d
Complete output (1205 lines):

--------------------------------------------------------------------------------
-- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Generator
Ninja
does not support platform specification, but platform
x64
was specified.
Then LOADS of stuff finally ending with...
ERROR: Could not build wheels for opencv-contrib-python, which is required to install pyproject.toml-based projects

确实有好几页。大部分看起来像CMake生成的输出,搜索&找到东西,但我从来没有见过类似的任何其他OpenCV安装之前。

我已经更新了pipsetup-tools,仍然是相同的错误。我已经尝试了所有的修复,我可以在这里找到,仍然是相同的错误。我试过直接从克隆的git仓库安装,仍然是相同的错误

有人见过这种行为吗?

您可能需要运行

pip install --upgrade wheel

pip install opencv-contrib-python

自从你更新了pipsetup-tools之后,这是我唯一能想到更新的东西。

编辑:找到一个类似的问题,几乎有相同的答案,以及其他答案和有用的信息。

相关内容

  • 没有找到相关文章

最新更新