Уже с несколько часов пытаюсь установить opencv-contrib-python.
Использую virtual env.
pip install -v --no-binary=opencv-contrib-python-headless opencv-contrib-python-headless==4.4.0.46
pip install opencv-contrib-python==4.4.0.46
copying _skbuild/macosx-10.14-x86_64-3.7/cmake-install/share/opencv4/haarcascades/haarcascade_smile.xml -> _skbuild/macosx-10.14-x86_64-3.7/cmake-install/cv2/data/haarcascade_smile.xml
copying _skbuild/macosx-10.14-x86_64-3.7/cmake-install/share/opencv4/haarcascades/haarcascade_upperbody.xml -> _skbuild/macosx-10.14-x86_64-3.7/cmake-install/cv2/data/haarcascade_upperbody.xml
Copying files from non-default sourcetree locations
copying LICENSE.txt -> _skbuild/macosx-10.14-x86_64-3.7/cmake-install/cv2/LICENSE.txt
copying LICENSE-3RD-PARTY.txt -> _skbuild/macosx-10.14-x86_64-3.7/cmake-install/cv2/LICENSE-3RD-PARTY.txt
Traceback (most recent call last):
File "/Users/alexMac/Projects/Freelance/schemochka-local/venv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
main()
File "/Users/alexMac/Projects/Freelance/schemochka-local/venv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/alexMac/Projects/Freelance/schemochka-local/venv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 205, in build_wheel
metadata_directory)
File "/private/var/folders/7c/b_6jnsqs03qg6qc_c7n4y__c0000gn/T/pip-build-env-9z77fs5m/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 413, in build_wheel
wheel_directory, config_settings)
File "/private/var/folders/7c/b_6jnsqs03qg6qc_c7n4y__c0000gn/T/pip-build-env-9z77fs5m/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 397, in _build_with_temp_dir
self.run_setup()
File "/private/var/folders/7c/b_6jnsqs03qg6qc_c7n4y__c0000gn/T/pip-build-env-9z77fs5m/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 484, in run_setup
self).run_setup(setup_script=setup_script)
File "/private/var/folders/7c/b_6jnsqs03qg6qc_c7n4y__c0000gn/T/pip-build-env-9z77fs5m/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 452, in <module>
File "<string>", line 252, in main
File "/private/var/folders/7c/b_6jnsqs03qg6qc_c7n4y__c0000gn/T/pip-build-env-9z77fs5m/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'
Building wheel for opencv-contrib-python-headless (PEP 517) ... error
ERROR: Failed building wheel for opencv-contrib-python-headless
Failed to build opencv-contrib-python-headless
ERROR: Could not build wheels for opencv-contrib-python-headless which use PEP 517 and cannot be installed directly
Exception information:
Traceback (most recent call last):
File "/Users/alexMac/Projects/Freelance/schemochka-local/venv/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 188, in _main
status = self.run(options, args)
File "/Users/alexMac/Projects/Freelance/schemochka-local/venv/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 185, in wrapper
return func(self, options, args)
File "/Users/alexMac/Projects/Freelance/schemochka-local/venv/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 378, in run
", ".join(r.name for r in pep517_build_failures)))
pip._internal.exceptions.InstallationError: Could not build wheels for opencv-contrib-python-headless which use PEP 517 and cannot be installed directly