WebService Scala 压制组装机 merge java设计模式视频 java两个数组合并 打印缩放怎么设置 linux获取当前时间 查看mysql密码 java微服务架构 Navicat pythonfor循环 python自学 windows安装python环境 windows搭建python开发环境 python服务器开发 java正则表达式 java查看版本 java程序实例 java入门代码 java终止线程 java创建集合 变量的类型 java架构 java的安装 java判断 怎么安装linux系统 行业软件下载 神龙kms js格式化时间 微信砍价软件 掌门一对一下载 奥法隐藏外观 万能低格工具还原u盘 s10截屏 超过响应缓冲区限制 设备管理器在哪 贪吃蛇c语言代码 田字格字体 微信群群发软件
当前位置: 首页 > 学习教程  > 编程语言

centos8 安装opencv 失败

2020/11/4 14:49:53 文章标签:

centos8 安装opencv 失败 WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead. Collecting opencv-python Downloading http://mirrors.tencentyun.com/pypi/packages/30/46/821920986c7ce5bae5518c1d490e520a…

centos8 安装opencv 失败
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
Collecting opencv-python
Downloading http://mirrors.tencentyun.com/pypi/packages/30/46/821920986c7ce5bae5518c1d490e520a9ab4cef51e3e54e35094dadf0d68/opencv-python-4.4.0.46.tar.gz (88.9MB)
100% |████████████████████████████████| 88.9MB 114.0MB/s
Requirement already satisfied: numpy>=1.13.3 in /usr/local/lib64/python3.6/site-packages (from opencv-python)
Building wheels for collected packages: opencv-python
Running setup.py bdist_wheel for opencv-python … error
Complete output from command /usr/bin/python3.6 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-c03l9718/opencv-python/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” bdist_wheel -d /tmp/tmpimt53cofpip-wheel- --python-tag cp36:
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/skbuild/setuptools_wrap.py”, line 560, in setup
cmkr = cmaker.CMaker(cmake_executable)
File “/usr/local/lib/python3.6/site-packages/skbuild/cmaker.py”, line 95, in init
self.cmake_version = get_cmake_version(self.cmake_executable)
File “/usr/local/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)

Problem with the CMake installation, aborting build. CMake executable is cmake


Failed building wheel for opencv-python
Running setup.py clean for opencv-python
Failed to build opencv-python
Installing collected packages: opencv-python
Running setup.py install for opencv-python … error
Complete output from command /usr/bin/python3.6 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-c03l9718/opencv-python/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-41us1pok-record/install-record.txt --single-version-externally-managed --compile:
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/skbuild/setuptools_wrap.py”, line 560, in setup
cmkr = cmaker.CMaker(cmake_executable)
File “/usr/local/lib/python3.6/site-packages/skbuild/cmaker.py”, line 95, in init
self.cmake_version = get_cmake_version(self.cmake_executable)
File “/usr/local/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)

Problem with the CMake installation, aborting build. CMake executable is cmake

----------------------------------------

Command “/usr/bin/python3.6 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-c03l9718/opencv-python/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-41us1pok-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-c03l9718/opencv-python/

解决方案 pip3 install --upgrade pip 升级pip

安装成功
[root@VM-0-16-centos tr-master]# pip3 install opencv-python
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with ‘-m pip’ instead of running pip directly.
Looking in indexes: http://mirrors.tencentyun.com/pypi/simple
Collecting opencv-python
Downloading http://mirrors.tencentyun.com/pypi/packages/6d/80/10a9ae6fa0940f25af32739d1dc6dfdbbdc79af3f04c5ea1a6de4303cd54/opencv_python-4.4.0.46-cp36-cp36m-manylinux2014_x86_64.whl (49.5 MB)
|████████████████████████████████| 49.5 MB 97 kB/s
Requirement already satisfied: numpy>=1.13.3 in /usr/local/lib64/python3.6/site-packages (from opencv-python) (1.19.1)
Installing collected packages: opencv-python
Successfully installed opencv-python-4.4.0.46


本文链接: http://www.dtmao.cc/news_show_350226.shtml

附件下载

相关教程

    暂无相关的数据...

共有条评论 网友评论

验证码: 看不清楚?