0
python -m pip install mediapipe

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

First of all, I removed all old pythons (2.7, 3.6). Then installed python3.11.4 and pip 23.2.1.

Now, I try to install Mediapipe

python -m pip install mediapipe

And got errors:

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

Whats wrong? How can I resolve this trouble?

Gino Mempin
  • 25,369
  • 29
  • 96
  • 135
  • I'm not familiar with mediapipe, but from their pypi distributions files page (https://pypi.org/project/mediapipe/#files), there's no compatible distribution for python 3.11 - macos 10.13.x (high sierra). From their docs, minimum for macos seems to be 10.15.x: https://developers.google.com/mediapipe/framework/getting_started/troubleshooting#python_pip_install_failure – Gino Mempin Jul 30 '23 at 06:31
  • Gino Mempin! Yes! You are right! I missed this moment – Konstantin Khatskevich Jul 30 '23 at 17:55

1 Answers1

0

It seems mediapipe (as of 0.10.3) is not supported for your Python 3.11 + macOS High Sierra 10.13.x combination.

This can be seen from the available wheels on mediapipe's PyPi page (https://pypi.org/project/mediapipe/#files) that, as of mediapipe 0.10.3, the only wheels for python 3.11 are for macOS 11.x and up (actually, all the macosx wheels are for 11_0 and up). Your macOS version is simply not supported any more.

The error is also documented in the mediapipe docs: https://developers.google.com/mediapipe/framework/getting_started/troubleshooting#python_pip_install_failure:

Python pip install failure

The error message:

ERROR: Could not find a version that satisfies the requirement mediapipe
ERROR: No matching distribution found for mediapipe

after running pip install mediapipe usually indicates that there is no qualified MediaPipe Python for your system. Please note that MediaPipe Python PyPI officially supports the 64-bit version of Python 3.7 to 3.10 on the following OS:

  • x86_64 Linux
  • x86_64 macOS 10.15+
  • amd64 Windows

If the OS is currently supported and you still see this error, please make sure that both the Python and pip binary are for Python 3.7 to 3.10. Otherwise, please consider building the MediaPipe Python package locally by following the instructions here.

You will have to switch to a compatible Python - OS version.

There is a "here" in their docs for building the package yourself, but unfortunately that leads to a 404 page. You can try checking out the steps for installing mediapipe from source in the Installing on macOS section: https://developers.google.com/mediapipe/framework/getting_started/install#installing_on_macos.

There is also this suggestion in the Setup guide for Python section:

Note: If you are testing or experimenting with MediaPipe tasks, consider using Colaboratory, a Python notebook environment that requires no setup and runs entirely in the cloud.

Gino Mempin
  • 25,369
  • 29
  • 96
  • 135