chr*_*opp 2 python opencv pip cmake ubuntu-18.04
嘿,我有一个与此处显示的问题非常相似的问题错误:无法为使用 PEP 517 的 scipy 构建轮子,并且无法直接安装。
我正在使用 jetson Nano (ubuntu 18.04)。
错误
opencv-python 的构建轮(PEP 517)...错误错误:命令错误,退出状态 1:命令:/home/christopher/heartkillayolotest2/heartkillayolotest2/bin/python /home/christopher/heartkillayolotest2/heartkillayolotest2/lib/python3 .6/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpwort0shc cwd:/tmp/pip-install-g68zdlf0/opencv-python 完整输出(9行):文件“/tmp/pip-build -env-1b_l6sbo/overlay/lib/python3.6/site-packages/skbuild/setuptools_wrap.py”,第 560 行,在设置 cmkr = cmaker.CMaker(cmake_executable) 文件“/tmp/pip-build-env-1b_l6sbo/ override/lib/python3.6/site-packages/skbuild/cmaker.py”,第 95 行,在init self.cmake_version = get_cmake_version(self.cmake_executable) 文件“/tmp/pip-build-env-1b_l6sbo/overlay/lib /python3.6/site-packages/skbuild/cmaker.py”,第 82 行,get_cmake_version “CMake 安装出现问题,中止构建。CMake 可执行文件为 %s”% cmake_executable)回溯(最近一次调用最后):问题CMake 安装,中止构建。CMake 可执行文件是 cmake ----------------------------------------
错误:构建轮子失败opencv-python 无法构建 opencv-python 错误:无法为使用 PEP 517 且无法直接安装的 opencv-python 构建轮子
我尝试这样做来解决问题,但没有帮助:
(heartkillayolotest2)christopher@ccz:~/heartkillayolotest2/heartkillayolotest2$ pip3 install --upgrade pip 要求已经是最新的:pip in ./lib/python3.6/site-packages (20.2.3)
和
(heartkillayolotest2) christopher@ccz:~/heartkillayolotest2/heartkillayolotest2/yolo-v3$ pip3 install --upgrade pip 要求已经是最新的:pip in /home/christopher/heartkillayolotest2/heartkillayolotest2/lib/python3.6/site-包(20.2.3)
不幸的是,错误仍然发生。
有人可以帮助我吗?
在尝试了本线程和其他线程中的大多数建议选项(包括最流行的选项)之后:在安装 openCV 之前尝试“pip install --upgrade pip setuptools wheel”。
最终对我有用的是:
pip install --no-use-pep517 opencv-python
Run Code Online (Sandbox Code Playgroud)
(苹果系统)