前提・実現したいこと
pipenv install時に以下のようなエラーが出て困っています。
調べて書いていたことはあらかた試してみましたが、結果は変わらないです。
わかる方がいましたら、コメントお願いします。
発生している問題・エラーメッセージ
$ pipenv install opencv-python Installing opencv-python… Error: An error occurred while installing opencv-python! Error text: Collecting opencv-python Using cached opencv-python-4.4.0.44.tar.gz (88.9 MB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing wheel metadata: started Preparing wheel metadata: finished with status 'done' Collecting numpy>=1.17.3 Using cached numpy-1.19.3-cp38-cp38-manylinux2014_aarch64.whl (12.4 MB) Building wheels for collected packages: opencv-python Building wheel for opencv-python (PEP 517): started Building wheel for opencv-python (PEP 517): finished with status 'error' Failed to build opencv-python ERROR: Command errored out with exit status 1: command: /home/ubuntu/.local/share/virtualenvs/hoge-B1I62z_H/bin/python /home/ubuntu/.local/share/virtualenvs/hoge-B1I62z_H/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp_rca2162 cwd: /tmp/pip-install-7pokbvih/opencv-python Complete output (9 lines): File "/tmp/pip-build-env-n7q4o_jo/overlay/lib/python3.8/site-packages/skbuild/setuptools_wrap.py", line 560, in setup cmkr = cmaker.CMaker(cmake_executable) File "/tmp/pip-build-env-n7q4o_jo/overlay/lib/python3.8/site-packages/skbuild/cmaker.py", line 95, in __init__ self.cmake_version = get_cmake_version(self.cmake_executable) File "/tmp/pip-build-env-n7q4o_jo/overlay/lib/python3.8/site-packages/skbuild/cmaker.py", line 81, in get_cmake_version raise SKBuildError( Traceback (most recent call last): Problem with the CMake installation, aborting build. CMake executable is cmake ---------------------------------------- ERROR: Failed building wheel for opencv-python ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly ✘ Installation Failed
試したこと
pipのバージョンダウングレード
pip install cmake
pipのupgrade
$ sudo apt-get install python-opencv Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package python-opencv
補足情報(FW/ツールのバージョンなど)
Ubuntu 20.04.1
python 3.8.5
pip 20.2.4
マシン:ラズパイ4
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/11/02 03:03
退会済みユーザー
2020/11/02 04:37