Toybrick

ubuntu 18.04 安装opencv-python 4.3.0.38版本失败问题

ken

新手上路

积分
9
楼主
发表于 2022-8-3 11:46:32    查看: 3356|回复: 1 | [复制链接]    打印 | 只看该作者
系统版本:Ubuntu 18.04   
系统架构:aarch64
python:  3.7.5
按照手册安装opencv-python 指定版本4.3.0.38 时总是报错,如下:
Traceback (most recent call last):
        File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 262, in build_wheel
          metadata_directory)
        File "/usr/local/lib/python3.7/dist-packages/setuptools/build_meta.py", line 245, in build_wheel
          wheel_directory, config_settings)
        File "/usr/local/lib/python3.7/dist-packages/setuptools/build_meta.py", line 229, in _build_with_temp_dir
          self.run_setup()
        File "/usr/local/lib/python3.7/dist-packages/setuptools/build_meta.py", line 282, in run_setup
          self).run_setup(setup_script=setup_script)
        File "/usr/local/lib/python3.7/dist-packages/setuptools/build_meta.py", line 174, in run_setup
          exec(code, locals())
        File "<string>", line 452, in <module>
        File "<string>", line 252, in main
        File "/tmp/pip-build-env-gn1i3mo6/overlay/lib/python3.7/site-packages/skbuild/setuptools_wrap.py", line 686, in setup
          skbuild_kw["cmake_install_dir"],
        File "<string>", line 403, in _classify_installed_files_override
      TypeError: _classify_installed_files() got an unexpected keyword argument 'cmake_install_dir'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for opencv-python
Successfully built dill lmdb onnx onnx-tf Pillow psutil ruamel.yaml sklearn
Failed to build opencv-python
ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects
回复

使用道具 举报

jefferyzhang

版主

积分
13574
沙发
发表于 2022-8-3 14:34:53 | 只看该作者
Toybrick官方没有发布过,也从未支持过ubuntu系统
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表