解决ubantu opencv_python-3.4.2.16-cp37-cp37m-manylinux1_i686.whl is not a supported wheel on...
2022/3/20 7:30:50
本文主要是介绍解决ubantu opencv_python-3.4.2.16-cp37-cp37m-manylinux1_i686.whl is not a supported wheel on...,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
ubantu下出现 ERROR: opencv_python-3.4.2.16-cp37-cp37m-manylinux1_i686.whl is not a supported wheel on this platform.
博主环境:ubantu20.0 anaconda 虚拟环境下python3.7
opencv-python 3.4.2.16 一般的安装方式已经无法安装了,可行的方法是在清华源https://pypi.tuna.tsinghua.edu.cn/simple/opencv-python/ 上下载whl文件,然后pip install .whl,例如:
hndx-R8428-G11:~/anaconda3/envs/st-py37/lib/python3.7/site-packages$ pip3 install opencv_python-3.4.2.16-cp37-cp37m-manylinux1_i686.whl
虽然python版本是对应的,但是还是会出现:
ERROR: opencv_python-3.4.2.16-cp37-cp37m-manylinux1_i686.whl is not a supported wheel on this platform.
这是由于pip 不支持此文件名命名的whl文件,解决方法为:
1、ubantu终端下:
python -m pip debug --verbose
会显示支持的文件名:
2、基于对应的命名修改原whl文件:
原opencv_python-3.4.2.16-cp37-cp37m-manylinux1_i686.whl
改为opencv_python-3.4.2.16-cp37-cp37m-manylinux1_x86_64.whl
3、然后再pip install opencv_python-3.4.2.16-cp37-cp37m-manylinux1_x86_64.whl
同理可以安装opencv_contrib_python-3.4.2.16
这篇关于解决ubantu opencv_python-3.4.2.16-cp37-cp37m-manylinux1_i686.whl is not a supported wheel on...的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-03-30[译]漫画SELinux概念
- 2024-03-29linux 移动文件
- 2024-03-28linux .so file
- 2024-03-28Linux 磁盘管理
- 2024-03-28Linux学习笔记(十三)磁盘管理(一):磁盘分区
- 2024-03-26linux 创建 文件
- 2024-03-25使用SecureCRT对Linux vim进行颜色设置
- 2024-03-202019-2020-12 20199317 《Linux内核原理与分析》 第十二周作业
- 2024-03-20Linux运维的第二周总结
- 2024-03-13how to count number of directories in linux