Failed to build opencv-python

在尝试安装opencv-python时遇到错误,包括Ninja和Visual Studio的生成器错误。尝试了多种网上解决方案但未成功。最终在Anaconda环境中通过搜索并安装opencv4.0解决了问题。
摘要由CSDN通过智能技术生成

文章目录

错误代码

ERROR: Command errored out with exit status 1:
command: ‘C:\Users\31579.conda\envs\python36\python.exe’ ‘C:\Users\31579.conda\envs\python36\lib\site-packages\pip_vendor\pep517\in_process_in_process.py’ bui
ld_wheel ‘C:\Users\31579\AppData\Local\Temp\tmpqvvgjysq’
cwd: C:\Users\31579\AppData\Local\Temp\pip-install-a5xho7b3\opencv-python_c0b22adb6fcc40beae34fb52da121a00
Complete output (332 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.
– Configuring incomplete, errors occurred!
See also “C:/Users/31579/AppData/Local/Temp/pip-install-a5xho7b3/opencv-python_c0b22adb6fcc40beae34fb52da121a00/_cmake_test_compile/build/CMakeFiles/CMa

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值