collecting cv2
Could not find a version that satisfies the requirement cv2 (from versions: )
No matching distribution found for cv2
You are using pip version 10.0.1, however version 20.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Try pip install opencv-python,
and also to upgrade the
pip command with
python -m pip install --upgrade pip
Related
Unable to install tensonflow with Pip.
pip install tensorflow==1.2.1
Collecting tensorflow==1.2.1
Could not find a version that satisfies the requirement tensorflow==1.2.1 (from versions: )
No matching distribution found for tensorflow==1.2.1
Try this:
pip install --user install tensorflow==1.2.1.
You might need to use pip3 instead of pip if using python 3.
I'm doing
import soundfile as sf
and I get the error:
ImportError: No module named soundfile
I'm using Python 2.7 in Windows 10. I already did:
pip install pysoundfile
pip install conda
pip install virtualenv
python -m virtualenv venv
pip install numpy
pip install cffi
in the Windows cmd but no luck...I also tried:
pip install libsndfile
but I get the error:
Collecting libsndfile Could not find a version that satisfies the
requirement libsndfile (from versions: ) No matching distribution
found for libsndfile
did anyone try this?
Execute:
sudo apt-get install python-pip
and
sudo apt-get install python3-pip
Then execute all above package commands again with prefix pip2
I am running Mac OS High Sierra Version 10.13.5. I tried to install virtualenv and got message saying I need to upgrade pip to a later version
AKALBAG-M-82RZ:Python amkalbag$ pip install --user virtualenv
You are using pip version 6.1.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting virtualenv
Could not find a version that satisfies the requirement virtualenv (from versions: )
No matching distribution found for virtualenv
So I tired upgrading pip:
AKALBAG-M-82RZ:~ amkalbag$ pip install --upgrade pip
You are using pip version 6.1.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
I also tried using sudo, but that did not help either.
AKALBAG-M-82RZ:~ amkalbag$ sudo -H pip install --upgrade pip
Password:
Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
I keep getting message "Requirement already up-to-date".
How can I upgrade to pip version 10.0.1 so I may then install virtualenv?
When I do pip install tensorflow, it says that there is no matching distribution. I already updated pip.
(tfenv)pi#raspberrypi:~/Downloads/opencv-3.3.0-source/build $ pip install tensorflow
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
(tfenv)pi#raspberrypi:~/Downloads/opencv-3.3.0-source/build $ pip --version
pip 10.0.1 from /home/pi/.conda/envs/tfenv/lib/python3.4/site-packages/pip (python 3.4)
I get the same problem when I try install opencv through pip. I tried this command on another raspberry pi and everything works fine.
You need to have the latest version of pip in order to install tensorflow or openCV. You can upgrade pip using the below command:
python -m pip install --upgrade pip
After upgrading Pip, it should work fine.
I develop for both Python 2 and 3.
Thus, I have to use both pip2 and pip3.
When using pip3 - I receive this upgrade request (last two lines):
$ pip3 install arrow
Requirement already satisfied (use --upgrade to upgrade): arrow in c:\program files (x86)\python3.5.1\lib\site-packages
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in c:\program files (x86)\python3.5.1\lib\site-packages (from arrow)
Requirement already satisfied (use --upgrade to upgrade): six>=1.5 in c:\program files (x86)\python3.5.1\lib\site-packages (from python-dateutil->arrow)
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
My default pip is for Python 2, namely:
$ python -m pip install --upgrade pip
Requirement already up-to-date: pip in /usr/lib/python2.7/site-packages
However, none of the following explicit commands succeed in upgrading the Python 3 pip:
$ python -m pip3 install --upgrade pip3
/bin/python: No module named pip3
$ python -m pip install --upgrade pip3
Collecting pip3
Could not find a version that satisfies the requirement pip3 (from versions: )
No matching distribution found for pip3
$ python -m pip install --upgrade pip3.4
Collecting pip3.4
Could not find a version that satisfies the requirement pip3.4 (from versions: )
No matching distribution found for pip3.4
What is the correct command to upgrade pip3 when it is not the default pip?
Environment:
$ python3 -V
Python 3.4.3
$ uname -a
CYGWIN_NT-6.1-WOW 2.5.2(0.297/5/3) 2016-06-23 14:27 i686 Cygwin
Just use the pip3 command you already have:
pip3 install --upgrade pip
The installed project is called pip, always. The pip3 command is tied to your Python 3 installation and is an alias for pip, but the latter is shadowed by the pip command in your Python 2 setup.
You can do it with the associated Python binary too; if it executable as python3, then use that:
python3 -m pip install --upgrade pip
Again, the project is called pip, and so is the module that is installed into your site-packages directory, so stick to that name for the -m command-line option and for the install command.
When I searched for "how to update pip3" this came up. I had the problem described here in mind:
The Problem
Upgrading with pip3 might make point pip to the Python 3 version.
It seems as if this is not the case (any more).
The solution
Update the one you want to keep after the one you want to upgrade. Hence
pip3 install --upgrade pip
pip2 install --upgrade pip --force-reinstall
will make sure that pip points to pip2.