gpt4 book ai didi

python - 错误 : Could not build wheels for opencv-python which > use PEP 517 and cannot be installed directly

转载 作者:行者123 更新时间:2023-12-02 16:22:52 25 4
gpt4 key购买 nike

嘿,
我有一个与此处显示的问题非常相似的问题 ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly .
我正在使用jetson Nano(ubuntu 18.04)。
错误

Building wheel for opencv-python (PEP 517) ... error ERROR: Commanderrored out with exit status 1: command:/home/christopher/heartkillayolotest2/heartkillayolotest2/bin/python/home/christopher/heartkillayolotest2/heartkillayolotest2/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.pybuild_wheel /tmp/tmpwort0shccwd: /tmp/pip-install-g68zdlf0/opencv-python Complete output (9 lines):File "/tmp/pip-build-env-1b_l6sbo/overlay/lib/python3.6/site-packages/skbuild/setuptools_wrap.py",line 560, in setupcmkr = cmaker.CMaker(cmake_executable)File "/tmp/pip-build-env-1b_l6sbo/overlay/lib/python3.6/site-packages/skbuild/cmaker.py",line 95, in initself.cmake_version = get_cmake_version(self.cmake_executable)File "/tmp/pip-build-env-1b_l6sbo/overlay/lib/python3.6/site-packages/skbuild/cmaker.py",line 82, in get_cmake_version"Problem with the CMake installation, aborting build. CMake executable is %s" % cmake_executable) Traceback (most recent calllast):Problem with the CMake installation, aborting build. CMake executable is cmake ----------------------------------------
ERROR: Failed building wheel for opencv-python Failed to buildopencv-python ERROR: Could not build wheels for opencv-python whichuse PEP 517 and cannot be installed directly


我试过这个来解决问题,但它没有帮助:

(heartkillayolotest2)christopher@ccz:~/heartkillayolotest2/heartkillayolotest2$pip3 install --upgrade pip Requirement already up-to-date: pip in./lib/python3.6/site-packages (20.2.3)



(heartkillayolotest2)christopher@ccz:~/heartkillayolotest2/heartkillayolotest2/yolo-v3$pip3 install --upgrade pip Requirement already up-to-date: pip in/home/christopher/heartkillayolotest2/heartkillayolotest2/lib/python3.6/site-packages(20.2.3)


不幸的是,错误仍然发生。
有人可以帮助我吗?

最佳答案

在尝试了此线程和其他线程中的大多数建议选项之后,包括最流行的:在安装 openCV 之前尝试“pip install --upgrade pip setuptools wheel”。
最终对我有用的是:

pip install --no-use-pep517 opencv-python
(苹果系统)

关于python - 错误 : Could not build wheels for opencv-python which > use PEP 517 and cannot be installed directly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63869389/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com