Having trouble installing mediapipe - python

I have:
macOS Mojave version 10.14.6
python 3.8.3
pip 21.1.3
pip install mediapipe
py -m pip install mediapipe
…
all give the following two errors:
ERROR: Could not find a version that satisfies the requirement mediapipe (from versions: none)
ERROR: No matching distribution found for mediapipe
Also what does version refer to? pip, python , mediapipe?

Note: To make Mediapipe work with TensorFlow, please set Python 3.7 as the default Python version and install the Python “six” library by running pip3 install --user six.
https://google.github.io/mediapipe/getting_started/install.html

Not sure if still relevant but I was running into this issue on an M1 MacBook Pro and the issue seems to be that mediapipe doesn't have an Apple silicon version. Note all the releases for mediapipe are x86/x64:
https://pypi.org/project/mediapipe/#files
I found a fix here, someone compiled it for silicon: https://github.com/google/mediapipe/issues/3277
Basically,
pip install mediapipe-silicon

Related

Pip install troubleshooting - not finding valid distribution

I am trying to install mediapipe with pip in Python 3.10 from MacOS Monterey.
(mp_env_3.10_rosetta) ➜ ~ pip3.10 install mediapipe
ERROR: Could not find a version that satisfies the requirement mediapipe (from versions: none)
ERROR: No matching distribution found for mediapipe
I've even downloaded the wheel files, but they tell me that the platform doesn't match when I try to install them. I have tried this with and without Rosetta (since mediapipe is not supported on the APple M1 chip yet), and with all the wheel files.
(mp_env_3.10_rosetta) ➜ ~ pip3.10 install ~/Downloads/MediaPipe/mediapipe-0.8.10-cp310-cp310-macosx_10_15_x86_64.whl
ERROR: mediapipe-0.8.10-cp310-cp310-macosx_10_15_x86_64.whl is not a supported wheel on this platform.
All my teammates, who have the same laptops with the same OS, doing the same thing as I am doing, are not running into this problem. I am totally puzzled.
My main question here is, is there some way to get debugging info from pip to tell why it doesn't think it can find a match? Can I see if it doesn't know my platform, or OS, or Python version?

Can't install tensorflow on ubuntu 20.04.3 Python 3.6.15 pip 21.2.4

I have been around the mulberry bush for a few days trying to get tensorflow installed on an Ubuntu system. My specifications are;
Ubuntu: 20.04.3
Python (virtual environment): 3.6.15
Pip: 21.2.4
Tensorflow version wanted: 1.13.1
Tensorflow version will take: anything at this point
I followed a number of answers on the web. Got a compatible version of Python. Got the latest pip....
When I use the command;
pip3 install tensorflow==1.13.1
I get;
ERROR: Could not find a version that satisfies the requirement tensorflow==1.13.1 (from versions: none)
ERROR: No matching distribution found for tensorflow==1.13.1
when I do a pip_search on tensorflow, it shows tensorflow 2.6.0.
But when I do;
pip3 install tensorflow==2.6.0
I get the same error.
when I use the --upgrade switch to pip, I get the same error. I tried to install from a wheel file, but the file was incompatible on my system.
Any help is appreciated.
As per documentation of Tensorflow, version 1's final release that can be downloaded/installed is 1.15. Below this version are deprecated and no longer available to use in development.
Read it about here

I can't install opencv-contrib-python with pip

Occured probrem
I ran the following command to install an older version of opencv-contrib-python (4.0.0.21). Then an error occurred and this package could not be installed. How can I resolve this error?
pip install opencv-contrib-python==4.0.0.21
Collecting opencv-contrib-python==4.0.0.21
ERROR: Could not find a version that satisfies the requirement opencv-contrib-python==4.0.0.21 (from versions: 3.4.8.29, 3.4.9.31, 3.4.9.33, 3.4.10.35, 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 3.4.11.45, 4.1.2.30, 4.2.0.32, 4.2.0.34, 4.3.0.36, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46)
ERROR: No matching distribution found for opencv-contrib-python==4.0.0.21
Environment
Windows 10
Python 3.8.2
Pip 19.2.3
The version you specified opencv-contrib-python (4.0.0.21) does not have a relevant python3.8 version.
You need to use opencv corresponding to python3.8, or lower your python version to match the opencv version.

Error while installing opencv-contrib-python 3.3.0.9

I am trying to install opencv-contrib-python 3.3.0.9 using command python -m pip install opencv-contrib-python==3.3.0.9.
However it is throwing the following error:
Could not find a version that satisfies the requirement opencv-contrib-python==3.3.0.9 (from versions: 3.4.2.16, 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 3.4.6.27, 3.4.7.28, 3.4.8.29, 4.0.0.21, 4.0.1.23, 4.0.1.24, 4.
1.0.25, 4.1.1.26, 4.1.2.30)
No matching distribution found for opencv-contrib-python==3.3.0.9
I am using Python 3.7, opencv 4.1.2.30 and PyCharm.
Can you install a newer version of opencv-contrib-python by using
pip install opencv-contrib-python?
According to https://pypi.org/project/opencv-contrib-python/3.3.0.9/, that version does not support Python 3.7 and it also provides a link to the latest version which mention support Python 3.7 and installation guide (i.e. pip install opencv-contrib-python)

Anaconda3, Python 3.6 - pip install imagenet_utils - error message: Could not find a version that satisfies the requirement imagenet_utils

Anaconda3, Python 3.6, pip version 9.0.1
pip install imagenet_utils
Error message:
Could not find a version that satisfies the requirement imagenet_utils (from versions: ) No matching distribution found for imagenet_utils
Please, help.
Read me docs on github indicate compatibility up to 3.5. Take a look at some comparable libraries to avoid this issue here:
5 Genius Python Deep Learning Libraries.
Anaconda also offers a conda install version of Keras where this specific package can be accessed:
conda install -c conda-forge keras
then for python script would read:
from keras import imagenet_utils
Assuming compatibility is not the issue, you will need to verify the anaconda package location and make sure that you are installing to that location.

Categories

Resources