简体   繁体   English

找不到满足 mediapipe 要求的版本

[英]Could not find a version that satisfies the requirement mediapipe

Environment : Debian, Debian GNU/Linux, 10 (buster), amd64 built on 20210609, supports Shielded VM features.环境:Debian、Debian GNU/Linux、10(buster)、基于20210609构建的amd64,支持Shielded VM特性。

Platform : Google cloud compute engine平台:谷歌云计算引擎

Python version : Python 3.7.3 Python 版本:Python 3.7.3

pip3 version : pip 18.1 pip3 版本:pip 18.1

command : pip3 install mediapipe命令:pip3 install mediapipe

result : Collecting mediapipe Could not find a version that satisfies the requirement mediapipe (from versions: ) No matching distribution found for mediapipe结果:收集 mediapipe 找不到满足 mediapipe 要求的版本(来自版本:)没有找到 mediapipe 的匹配分发

I have also tried to install it by downloading .whl file of it我也尝试通过下载它的 .whl 文件来安装它

command : pip3 install mediapipe-0.8.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl命令:pip3 install mediapipe-0.8.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

respose : mediapipe-0.8.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl is not a supported wheel on this platform. respose:mediapipe-0.8.5-CP37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl不是此平台上支持的车轮。

It seems that mediapipe has some Incompatibilities found with python > 3.7.0 .似乎 mediapipe 与 python > 3.7.0存在一些不兼容性 There are issues with python 3.9+, or with python 32-bit (rather than 64) python 3.9+ 或 python 32 位(而不是 64)存在问题

My suggestion is to downgrade python version to 3.6 using conda .我的建议是使用conda将 python 版本降级到 3.6。 We will create a python environment with the suggested version 3.6:我们将使用建议的 3.6 版创建一个 python 环境:

$ sudo apt install wget
$ wget https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh 
$ chmod +x Anaconda3-2021.05-Linux-x86_64.sh
$ ./Anaconda3-2021.05-Linux-x86_64.sh 
$ conda install python=3.6
$ conda create --name py36 python=3.6
$ conda activate py36
$ pip install mediapipe

There are multiples ways to solve this, but I have reproduced in your exactly same environment and it works.有多种方法可以解决这个问题,但我已经在您完全相同的环境中进行了复制并且可以正常工作。

You need to install 64-bit python.您需要安装 64 位 python。 just uninstall the 32bit python and install 64-bit version of python from:只需卸载 32 位 python 并从以下位置安装 64 位版本的 python:

https://www.python.org/downloads/ https://www.python.org/downloads/

Maker sure to check the "Add to PATH" checkbox during installation.确保在安装过程中选中“添加到路径”复选框。 After installing, you can run pip command and mediapipe will be installed smoothly.安装完成后,可以运行pip命令,mediapipe就可以顺利安装了。

pip install mediapipe

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM