google-ai-edge / mediapipe

Cross-platform, customizable ML solutions for live and streaming media.
https://ai.google.dev/edge/mediapipe
Apache License 2.0
27.46k stars 5.15k forks source link

Cant pip install mediapipe #1325

Closed nikitatishin5 closed 3 years ago

nikitatishin5 commented 3 years ago

I cant install mediapipe in Python There is no such a package

jiuqiant commented 3 years ago

You can find it at https://pypi.org/project/mediapipe.

MaRauder111 commented 3 years ago

I having some error in "Ubuntu 18.04.1"

Creating a virtual environment name "env"

python3 -m venv env

source env/bin/activate

Installing mediapipe

(env) $ pip install mediapipe
Collecting mediapipe
  Could not find a version that satisfies the requirement mediapipe (from versions: )
No matching distribution found for mediapipe
jiuqiant commented 3 years ago

@MaRauder111, what's your python version?

MaRauder111 commented 3 years ago

My python version was 2. I have upgrade my python.

Before

$ python --version
Python 2.7.0

Now

$ python --version
Python 3.7.9

I have install mediapipe.

Thank you @jiuqiant . I totally forget to check about the python version. My bad.

jiuqiant commented 3 years ago

You are welcome!

nurettin commented 3 years ago

Also note that pip install will currently not work with versions >= 3.9

Makuta11 commented 3 years ago

I am getting the same error as MaRauder111 on Ubuntu 20.04:

(env) ubuntu@ubuntu:~\/mediapipe$ python --version Python 3.8.5 (env) ubuntu@ubuntu:~\/mediapipe$ pip install mediapipe ERROR: Could not find a version that satisfies the requirement mediapipe (from versions: none) ERROR: No matching distribution found for mediapipe

Anyone know a fix?

MaRauder111 commented 3 years ago

I am getting the same error as MaRauder111 on Ubuntu 20.04:

(env) ubuntu@ubuntu:~/mediapipe$ python --version Python 3.8.5 (env) ubuntu@ubuntu:~/mediapipe$ pip install mediapipe ERROR: Could not find a version that satisfies the requirement mediapipe (from versions: none) ERROR: No matching distribution found for mediapipe

Anyone know a fix?

I update my python to 3 and it work fine for me.

Makuta11 commented 3 years ago

I am getting the same error as MaRauder111 on Ubuntu 20.04: (env) ubuntu@ubuntu:~/mediapipe$ python --version Python 3.8.5 (env) ubuntu@ubuntu:~/mediapipe$ pip install mediapipe ERROR: Could not find a version that satisfies the requirement mediapipe (from versions: none) ERROR: No matching distribution found for mediapipe Anyone know a fix?

I update my python to 3 and it work fine for me.

I tried that and got the following:

ubuntu@ubuntu:~$ python3 -m venv env ubuntu@ubuntu:~$ source env/bin/activate (env) ubuntu@ubuntu:~$ python --version Python 3.8.5 (env) ubuntu@ubuntu:~$ pip install mediapipe ERROR: Could not find a version that satisfies the requirement mediapipe (from versions: none) ERROR: No matching distribution found for mediapipe

any ideas?

mayank6940 commented 3 years ago

**I have python 3.8.3 version but I can't install mediapipe it's shows me Could not find a version that satisfies the requirement mediapipe

gamersi commented 3 years ago

@mayank6940 I gat this, too, i have python 3.8.5

mayank6940 commented 3 years ago

@gamersi install python 3.7 version then you will not get any error

gamersi commented 3 years ago

@gamersi install python 3.7 version then you will not get any error

Ok I will try it later

gamersi commented 3 years ago

@mayank6940 I am now using the 3.7.9 version with PIP 21.0.1, I deleted 3.8 and i still get the same error

gamersi commented 3 years ago

Like this: image

shabelson commented 3 years ago

Hi - Same issue. tried on python from 3.2 to 3.9 (The image is on 3.7) Same as with anaconda... Capture

gamersi commented 3 years ago

Hi - Same issue.

tried on python from 3.2 to 3.9 (The image is on 3.7)

Same as with anaconda...

Capture

I still didn't find a solution - python makes problems everytime

jiuqiant commented 3 years ago

Hi - Same issue. tried on python from 3.2 to 3.9 (The image is on 3.7) Same as with anaconda... Capture

I still didn't find a solution - python makes problems everytime

I think "python37-32" means 32-bit ? Your pip is for the 32-bit version of Python? You need the 64-bit version of Python 3.7+ with pip to install mediapipe...

IsakBrendestam commented 3 years ago

If you get: ERROR: Could not find a version that satisfies the requirement mediapipe ERROR: No matching distribution found for mediapipe when trying "pip install mediapie"

Try "py -m pip install mediapie" insted, worked for me on windows!

Rhytham3008 commented 3 years ago

it didn't worked for me it says py is not recognised as an internal or external command

Rhytham3008 commented 3 years ago

pls help

jiuqiant commented 3 years ago

it didn't worked for me it says py is not recognised as an internal or external command

py is probably an alias to the local python 3.7+ binary. Also see the sys requirements at https://github.com/google/mediapipe/blob/master/docs/getting_started/troubleshooting.md#python-pip-install-failure.

JainJai2305 commented 3 years ago

Hey guys !! those of u who are not able to install mediapipe and it's showing error like this "No matching distribution found for mediapipe" ; install python 3.7.0 not 3.7.4 not 3.8 , Python 3.7.0 link: https://www.python.org/downloads/release/python-370/

I had 3.7.4 but I was not able to install mediapipe , but I changed my path and installed 3.7.0 and now it's working just fine for me Hope it helped , luck!! :)

Nostalgie2 commented 3 years ago

I am trying pip install mediapipe but I am getting an error. ERROR: could not find a version that satisfies the requierement mediapipe. no matching distribution found for mediapipe.

jiuqiant commented 3 years ago

I am trying pip install mediapipe but I am getting an error. ERROR: could not find a version that satisfies the requierement mediapipe. no matching distribution found for mediapipe.

Does https://github.com/google/mediapipe/blob/master/docs/getting_started/troubleshooting.md#python-pip-install-failure help?

pandeyshambhavi commented 3 years ago

I have python version 3.7.6 still it shows ERROR: could not find a version that satisfies the requierement mediapipe. no matching distribution found for mediapipe.

jiuqiant commented 3 years ago

I have python version 3.7.6 still it shows ERROR: could not find a version that satisfies the requierement mediapipe. no matching distribution found for mediapipe.

What's your OS? Have you checked that your python 3.7.6 and pip binary are the 64-bit version?

pandeyshambhavi commented 3 years ago

Yes I downloaded the 64 bit version of python 3.7.6 and finally medipipe is installed. Thank you!

Rhytham3008 commented 3 years ago

I am trying pip install mediapipe but I am getting an error. ERROR: could not find a version that satisfies the requirement mediapipe. no matching distribution found for mediapipe.

Does https://github.com/google/mediapipe/blob/master/docs/getting_started/troubleshooting.md#python-pip-install-failure help?

Thanks, I got to know that it needs python to be 64 bit

Missael512 commented 3 years ago

Hello guys, i'm having the same problem as others: ERROR: Could not find a version that satisfies the requirement mediapie (from versions: none) ERROR: No matching distribution found for mediapie I have Python 3.8.5 running on a 64 bits System , i don't know what to do

chiazor commented 3 years ago

Hey guys !! those of u who are not able to install mediapipe and it's showing error like this "No matching distribution found for mediapipe" ; install python 3.7.0 not 3.7.4 not 3.8 , Python 3.7.0 link: https://www.python.org/downloads/release/python-370/

I had 3.7.4 but I was not able to install mediapipe , but I changed my path and installed 3.7.0 and now it's working just fine for me Hope it helped , luck!! :)

This exactly worked for me too. I downloaded python 3.7 and created a virtualenv with 3.7. virtualenv venv --python=python3.7.0

mayank6940 commented 3 years ago

Hello guys, i'm having the same problem as others: ERROR: Could not find a version that satisfies the requirement mediapie (from versions: none) ERROR: No matching distribution found for mediapie I have Python 3.8.5 running on a 64 bits System , i don't know what to do

install python 3.7 because mediapipe only works on python 3.7...

iovsiann commented 3 years ago

Below worked successfully for me on Ubuntu 18.04:

$ sudo apt update 
$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:deadsnakes/ppa 
$ sudo apt update 
$ sudo apt install python3.9 python3.9-venv
$ python3.9 -m venv mp && source mp/bin/activate
$ python -m pip install --upgrade pip
$ pip install mediapipe
Collecting mediapipe
  Downloading mediapipe-0.8.6.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (32.2 MB)
(mp) $ python
>> import mediapipe
>> print(mediapipe.__file__)
>> print(mediapipe.solutions)
>> exit()
adamanov commented 3 years ago

for Ubuntu 18 you have to just upgrade your pip with the following command

python -m pip install --upgrade pip pip install mediapipe

gh279760559 commented 3 years ago

for Ubuntu 18 you have to just upgrade your pip with the following command

python -m pip install --upgrade pip pip install mediapipe

Guys, python version does not matter too much. Check @adamanov comments. If you upgrade your pip version it should be fine. Thanks Adam

miyurudassanayake commented 3 years ago

Help :( image

Windows 11

jiuqiant commented 3 years ago

Help :(

image

Windows 11

Python 3.10 is not supported by Mediapipe yet. Please use Python 3.7 to 3.9.

GuilhermeAbreu commented 3 years ago

Refiz toda a configuração do python e voltei para versão 3.10 para 3.7, e a mesma foi instalada com sucesso.

image

agneya-1402 commented 3 years ago

ERROR: Could not find a version that satisfies the requirement mediapipe (from versions: none) ERROR: No matching distribution found for mediapipe

Using Python 3.10 on windows 10 Command used : python -m pip install mediapipe

Anyone got a fix ?

Edit : It works on Python 3.7 and Google Collab

shabelson commented 3 years ago

the best practice I know is to :

  1. Download python 3.7 (it can be in parallel to other python versions on the same machine)
  2. create a virtual environment (several options - tutorial easy and available)
  3. activate the venv and pip install on the said environment. Good Luck!
FAHMYPAIZIAH commented 2 years ago

so I can't download mediapipe in python 3.10

FAHMYPAIZIAH commented 2 years ago

Help :( image Windows 11

Python 3.10 is not supported by Mediapipe yet. Please use Python 3.7 to 3.9.

Same problem :)

shivtiwari123 commented 2 years ago

Help :( image Windows 11

Python 3.10 is not supported by Mediapipe yet. Please use Python 3.7 to 3.9.

Same problem :)

Tried python 3.7.9. Was able to install mediapipe., but numpy and cv2 went invalid and could not be used my previous codes.

rodrigoricky commented 2 years ago

I tried downgrading from v3.10 to v3.7 and it successfully installed.

edulayernet commented 2 years ago

Guys, just type enter this "pip install mediapipe==0.8.9" to bash or cmd.

rodrigoricky commented 2 years ago

Updated to python 3.8, can't download it even @edulayernet solution, no worky.

Rana-Banerjee commented 2 years ago

I am using Ubuntu 18.04. Tried python 3.7.5 and 3.8.0, but pip install mediapipe doesn't work. Says no matching distributions found. Building from source also failed. Then I installed python 3.7.9 and pip install worked! I guess the compatibility is specifically with python 3.7.9

rafiizdhr commented 2 years ago
image

i use python 3.10.0 i cant install mediapipe, is there any answer for this?

rodrigoricky commented 2 years ago

I just realized I was using python 32bit, after I switched from Python 32bit to 63bit, Mediapipe should work from Python 7 to 9 64bit.

ALISONTORRES commented 2 years ago

C:\Users\Alison>python --version Python 3.10.0

C:\Users\Alison>pip install mediapipe ERROR: Could not find a version that satisfies the requirement mediapipe (from versions: none) ERROR: No matching distribution found for mediapipe

C:\Users\Alison> same problem :( help