could not find a version that satisfies the requirement mediapipe (from versions: none)
Question:
Please help me out to get rid of this error while installing the mediapipe library in python 3.7.9 .
I have tried upgrading pip version but nothing so far seems to help
My current pip version is 21.3.1
I am running Windows 7 (32 bit) machine
Answers:
You need to install the 64-bit version of Python.
Mediapipe doesn’t support 32-bit python; all of the wheels are for 64-bit python.
Please note that MediaPipe Python PyPI officially supports the 64-bit version of Python 3.7 and above on the following OS:
x86_64 Linux
x86_64 macOS 10.15+
amd64 Windows
Find details From the official docs of mediapipe here
You’ll have to run python and pip binary above 3.7 on a 64-bit OS. If your OS is unsupported/this doesn’t work, you’ll have to build the python mediapipe package. Follow the steps from official docs here
if you are building the package, also make sure you have opencv pre-installed. You can use the following command to install OpenCV
pip install opencv-python
Building the pipelone might seem overwelhming from a beginner perspective, however just read and follow the clearly mentioned steps and your problem will be solved.
If you are on Apple Silicon (M1, M2) etc you might see this problem.
At the time of writing (June 2022) there is no official binary release of Mediapipe for Apple Silicon.
According to https://github.com/google/mediapipe/issues/3277 they are working on this and will support it "in the next release".
In the mean time there is a 3rd party build (linked in the issue above) which can be installed like this:
pip install mediapipe-silicon
Mediapipe is running on python 3.10.9 64-bit so you can use 3.10.9 interpreter
In my case, the problem was that pip packages were outdated. So, my solution was:
(i) First check outdated pip packages –
pip list --outdated
(ii) Next, update the pip packages. For Windows 10/11 –
pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_}
Please help me out to get rid of this error while installing the mediapipe library in python 3.7.9 .
I have tried upgrading pip version but nothing so far seems to help
My current pip version is 21.3.1
I am running Windows 7 (32 bit) machine
You need to install the 64-bit version of Python.
Mediapipe doesn’t support 32-bit python; all of the wheels are for 64-bit python.
Please note that MediaPipe Python PyPI officially supports the 64-bit version of Python 3.7 and above on the following OS:
x86_64 Linux
x86_64 macOS 10.15+
amd64 Windows
Find details From the official docs of mediapipe here
You’ll have to run python and pip binary above 3.7 on a 64-bit OS. If your OS is unsupported/this doesn’t work, you’ll have to build the python mediapipe package. Follow the steps from official docs here
if you are building the package, also make sure you have opencv pre-installed. You can use the following command to install OpenCV
pip install opencv-python
Building the pipelone might seem overwelhming from a beginner perspective, however just read and follow the clearly mentioned steps and your problem will be solved.
If you are on Apple Silicon (M1, M2) etc you might see this problem.
At the time of writing (June 2022) there is no official binary release of Mediapipe for Apple Silicon.
According to https://github.com/google/mediapipe/issues/3277 they are working on this and will support it "in the next release".
In the mean time there is a 3rd party build (linked in the issue above) which can be installed like this:
pip install mediapipe-silicon
Mediapipe is running on python 3.10.9 64-bit so you can use 3.10.9 interpreter
In my case, the problem was that pip packages were outdated. So, my solution was:
(i) First check outdated pip packages –
pip list --outdated
(ii) Next, update the pip packages. For Windows 10/11 –
pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_}