I am not able to install python mediapipe library on mac - python

As I tried to use pip to install mediapipe in my virtual environment, I run this in my terminal:
(venv) (base) stu-S2-19r:FaceDetector S2$ pip install mediapipe
And got this error:
ERROR: Could not find a version that satisfies the requirement mediapipe
ERROR: No matching distribution found for mediapipe
I am currently running:
Python 3.7.7, pip 21.0.1 on Mac OS Version 10.14.6.
Any help would be appreciated

I figured it out. You need to make sure you are running a version of Mac OS that is Catalina or higher.

Related

No module named cv cv2 No matching distribution found for mediapipe

I am using windows
import cv2
ModuleNotFoundError: No module named 'cv2'
how to fix it?
I tried
pip install opencv-contrib-python
pip3 install opencv-python
pip install opencv-python
etc etc, still did not work
update: cv2 is fixed, but I am having a problem on mediapipe.
it's showing like this:
ERROR: Could not find a version that satisfies the requirement mediapipe (from versions: none)
ERROR: No matching distribution found for mediapipe
WARNING: You are using pip version 21.3.1; however, version 22.3.1 is available.
You should consider upgrading via the 'E:\python\Scripts\python.exe -m pip install --upgrade pip' command.
my python version is 3.11.0
It seems the install of cv2 goes nicer with system install: apt install python3-opencv
I think, with Python 3.11.0 we can't install mediapipe. What I suggest you is to try lowering your Python version to 3.7.0 and install mediapipe. If you face the same issue then try installing mediapipe==0.8.9

I cannot install python module cv2 on windows 7 with pip

I can not install Python module cv2 with the command "pip install cv2"
OS: Windows 7 64bit
error:
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement cv2 <from versions: none >
WARNING: You are using pip version 20.2; however, version 20.2.1 is available.
You should consider upgrading
Install OpenCv instead of cv2 :
pip install opencv-python
Will work
OpenCv tutorial

Can't install open3d libraries (Error:Could not find a version that satisfies the requirement open3d)

I use pyCharm software in windows 10, and when I tried to install open3d the following error appeared:
ERROR: Could not find a version that satisfies the requirement open3d (from versions: none)
ERROR: No matching distribution found for open3d
I tried to install it using cmd but the same error appeared, also pip version is 20.1.1.
Image
If you can't seem to upgrade open3d to version 0.13.0;
Upgrade to the latest pip version
python3 -m pip install --upgrade pip
and
sudo pip3 install open3d==0.13.0
Hope that works.
Solved: by installing python version 3.77 and run code using it instead of 3.8

How to I install Tensorflow I have problem

I'm currently trying to pip install tensorflow. But I get the following error:
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
What should I do?
Oh and by the way i tried installing it with the following command:
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
But i think i just made it even worse.
Currently on Windows 10
Thanks!
You are trying to install a TensorFlow package for Mac OS. Try with a suitable package for Windows 10. For example if you have Python 3.6 and want the CPU-only version you could try the following:
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.14.0-cp36-cp36m-win_amd64.whl
But it is recommended to install TensorFlow using a virtualenv as shown on the official documentation.

install numpy on python 3.5 Mac OS High sierra

I wanted to install the numpy package for python 3.5 on my Mac OS High Sierra, but I can't seem to make it work.
I have it on python2.7, but I would also like to install it for the next versions.
Currently, I have installed python 2.7, python 3.5, and python 3.7.
I tried to install numpy using:
brew install numpy --with-python3 (no error)
sudo port install py35-numpy#1.15.4 (no error)
sudo port install py37-numpy#1.15.4 (no error)
pip3.5 install numpy (gives "Could not find a version that satisfies the requirement numpy (from versions: )
No matching distribution found for numpy" )
I can tell that it is not installed because when I type python3 and then import numpy as np gives "ModuleNotFoundError: No module named 'numpy'"
Any ideas on how to make it work?
Thanks in advance.
First, you need to activate the virtual environment for the version of python you wish to run. After you have done that then just run "pip install numpy" or "pip3 install numpy".
If you used Anaconda to install python then, after activating your environment, type conda install numpy.
If running pip3.5 --version or pip3 --version works, what is the output when you run pip3 freeze? If there is no output, it indicates that there are no packages installed for the Python 3 environment and you should be able to install numpy with pip3 install numpy.

Categories

Resources