ModuleNotFoundError: No module named ‘skbuild‘

这个在安装opencv时出现错误

可以安装skbuild by:pip install scikit-build

***************************************************************************************************

但是报以下的错:

 Running setup.py bdist_wheel for opencv-python ... error
  Complete output from command C:\Users\wsb\.conda\envs\dete2for_python3.6\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\wsb\\AppData\\Local\\Temp\\pip-build-jgv9x32y\\opencv-python\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\wsb\AppData\Local\Temp\tmpv7nqdarppip-wheel- --python-tag cp36:
  Traceback (most recent call last):
    File "C:\Users\wsb\.conda\envs\dete2for_python3.6\lib\site-packages\skbuild\setuptools_wrap.py", line 613, in setup
      cmkr = cmaker.CMaker(cmake_executable)
    File "C:\Users\wsb\.conda\envs\dete2for_python3.6\lib\site-packages\skbuild\cmaker.py", line 141, in __init__
      self.cmake_version = get_cmake_version(self.cmake_executable)
    File "C:\Users\wsb\.conda\envs\dete2for_python3.6\lib\site-packages\skbuild\cmaker.py", line 96, in get_cmake_version
      "Problem with the CMake installation, aborting build. CMake executable is %s" % cmake_executable

  Problem with the CMake installation, aborting build. CMake executable is cmake

**********************************************************************************************************

解决方法:pip install opencv-python==4.1.1.26

这样不会使用这个包

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用\[1\]:出现如下的报错: Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-nmud90jq/opencv-python/setup.py", line 9, in <module> import skbuild ModuleNotFoundError: No module named 'skbuild' \[1\]。这个报错是因为在安装opencv-python时缺少了skbuild模块。解决这个问题的方法是通过执行以下命令安装skbuild模块:pip install scikit-build \[3\]。 所以,要解决ModuleNotFoundError: No module named 'skbuild'的问题,你可以尝试执行以下命令来安装skbuild模块: pip install scikit-build \[3\]。 #### 引用[.reference_title] - *1* [报错:ModuleNotFoundError: No module namedskbuild](https://blog.csdn.net/GungnirsPledge/article/details/108566415)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [安装opencv-python过程中遇到的问题总结](https://blog.csdn.net/qq_15560431/article/details/108981504)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值