小编Noa*_*obb的帖子

我无法安装opencv-python,因为我没有vs?

每当我尝试 pip install opencv-python 时,都会出现错误,提示我需要安装 Visual Studio 2022,但我已经安装了它。我完全不知道如何解决这个问题,现在确实需要 opencv 在我的设备上工作。

我也尝试过使用 opencv-contrib-python ,但这给了我同样的错误。错误消息是:

  ERROR: Command errored out with exit status 1:
   command: 'c:\program files\python38\python.exe' 'c:\program files\python38\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\NOAH~1.ROB\AppData\Local\Temp\tmpb6spxf7z'
       cwd: C:\Users\noah.robb\AppData\Local\Temp\pip-install-g3bef9kp\opencv-contrib-python
  Complete output (332 lines):
  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.


  -- Configuring incomplete, errors occurred!
  See also "C:/Users/noah.robb/AppData/Local/Temp/pip-install-g3bef9kp/opencv-contrib-python/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
  Not searching for unused variables given on the command line.
  CMake …
Run Code Online (Sandbox Code Playgroud)

python opencv

1
推荐指数
1
解决办法
5480
查看次数

标签 统计

opencv ×1

python ×1