centos8 不用编译 直接安装 opencv-python whl

centos8 不用编译 直接安装 opencv-python whl
文档:centos8 不用编译 直接安装 opencv-pyt…
链接:http://note.youdao.com/noteshare?id=8ebc7dab383df09ae092e058f61ac49f&sub=B112F05B0FEA4A2D96F27CD5024064D9
添加链接描述

https://pypi.tuna.tsinghua.edu.cn/simple/opencv-contrib-python/
找whl

https://gitee.com/starplatinum111/my_util_py_pub/blob/master/plaform_show.py

列出 适合的平台

复制列出的 版本 列表的字符串,贴在这,复制 这个代码到 https://pypi.tuna.tsinghua.edu.cn/simple/opencv-contrib-python/ 的浏览器上,console,运行代码
https://gitee.com/starplatinum111/my_util_py_pub/blob/master/pip_links.js
let supported_version_list_str = `

cp36-cp36m-manylinux1_x86_64

cp36-cp36m-linux_x86_64

cp36-abi3-manylinux1_x86_64

cp36-abi3-linux_x86_64

cp36-none-manylinux1_x86_64

cp36-none-linux_x86_64

获得符合条件的a 的字符串,贴到 html里面,本地打开html 来看
https://gitee.com/starplatinum111/my_util_py_pub/blob/master/pip_links_this_platform.html

file:///D:/proj/python/my_util_py_pub/pip_links_this_platform.html
知道哪些是符合的,下载个最新的 或者最新的几个里面挑一个,应该可以了。比如最后的一个的链接,右键

wget https://pypi.tuna.tsinghua.edu.cn/packages/c6/db/790dbc6bcfea87fc6f790c6306509c2691ce31c96d82e5b826545d90ea52/opencv_contrib_python-4.2.0.34-cp36-cp36m-manylinux1_x86_64.whl#sha256=f709131bfb9235e8fa2ded9c4729c2639c569438d905d2b9d096a4553963e083

[root@VM-12-3-centos file]# wget https://pypi.tuna.tsinghua.edu.cn/packages/c6/db/790dbc6bcfea87fc6f790c6306509c2691ce31c96d82e5b826545d90ea52/opencv_contrib_python-4.2.0.34-cp36-cp36m-manylinux1_x86_64.whl#sha256=f709131bfb9235e8fa2ded9c4729c2639c569438d905d2b9d096a4553963e083
–2022-12-13 14:04:49-- https://pypi.tuna.tsinghua.edu.cn/packages/c6/db/790dbc6bcfea87fc6f790c6306509c2691ce31c96d82e5b826545d90ea52/opencv_contrib_python-4.2.0.34-cp36-cp36m-manylinux1_x86_64.whl
正在解析主机 pypi.tuna.tsinghua.edu.cn (pypi.tuna.tsinghua.edu.cn)… 101.6.15.130, 2402:f000:1:400::2
正在连接 pypi.tuna.tsinghua.edu.cn (pypi.tuna.tsinghua.edu.cn)|101.6.15.130|:443… 已连接。
已发出 HTTP 请求,正在等待回应… 200 OK
长度:34184754 (33M) [application/octet-stream]
正在保存至: “opencv_contrib_python-4.2.0.34-cp36-cp36m-manylinux1_x86_64.whl”

opencv_contrib_python-4.2.0.34-cp36-cp36 100%[===============================================================================>] 32.60M 3.74MB/s 用时 9.2s

2022-12-13 14:04:58 (3.53 MB/s) - 已保存 “opencv_contrib_python-4.2.0.34-cp36-cp36m-manylinux1_x86_64.whl” [34184754/34184754])

[root@VM-12-3-centos file]# pip3 install /home/app/file/opencv_contrib_python-4.2.0.34-cp36-cp36m-manylinux1_x86_64.whl
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
Processing ./opencv_contrib_python-4.2.0.34-cp36-cp36m-manylinux1_x86_64.whl
Requirement already satisfied: numpy>=1.11.3 in /usr/local/lib64/python3.6/site-packages (from opencv-contrib-python==4.2.0.34)
Installing collected packages: opencv-contrib-python
Successfully installed opencv-contrib-python-4.2.0.34
[root@VM-12-3-centos file]# ls
ffmpeg_test.mp4 opencv_contrib_python-4.5.1.48-cp37-cp37m-manylinux2014_x86_64.whl
opencv_contrib_python-4.2.0.34-cp36-cp36m-manylinux1_x86_64.whl opencv_contrib_python-4.6.0.66-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
opencv_contrib_python-4.5.1.48-cp36-cp36m-manylinux2014_x86_64.whl opencv_contrib_python-4.6.0.66-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
[root@VM-12-3-centos file]#

你可能感兴趣的:(python,python)