Toybrick

标题: ubuntu 18.04 安装opencv-python 4.3.0.38版本失败问题 [打印本页]

作者: ken    时间: 2022-8-3 11:46
标题: ubuntu 18.04 安装opencv-python 4.3.0.38版本失败问题
系统版本: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    时间: 2022-8-3 14:34
Toybrick官方没有发布过,也从未支持过ubuntu系统




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3