No matching distribution found for cv-bridge python - python

I have a script in python that uses cv-bridge. But I keep getting this error:
ERROR: Could not find a version that satisfies the requirement cv-bridge==1.15.0 (from -r requirements.txt (line 5)) (from versions: none)
ERROR: No matching distribution found for cv-bridge==1.15.0 (from -r requirements.txt (line 5))
To reproduce the error:
pip install -r requirements.txt
requirements.txt:
cv-bridge==1.15.0
Does anybody know how to solve it?

You have to actually install CV_Bridge and your script is failing because it cannot find a match for the exact version. As mentioned in the comment, this is almost certainly because of how old that version is. You should install the bridge via apt by doing sudo apt-get install ros-(DISTRO)-cv-bridge and sudo apt-get install ros-(DISTRO)-vision-opencv.

Related

ERROR: Could not find a version that satisfies the requirement apturl==0.5.2 (from versions: none)-- [duplicate]

I am currently trying to install a requirements and it is telling me that it is not found when I try and comment them out it happens for others.
I just deployed a Ubuntu 18.04 server. Made the virtual env by the following command python3 -m venv --system-site-packages env but every single time I try and run pip install -r requirements.txt it fails with
Collecting apparmor==2.12 (from -r requirements.txt (line 1))
Could not find a version that satisfies the requirement apparmor==2.12 (from -r requirements.txt (line 1)) (from versions: )
No matching distribution found for apparmor==2.12 (from -r requirements.txt (line 1))
if I try and install say pip install apparmor it tells me
Collecting apparmor
Could not find a version that satisfies the requirement apparmor (from versions: )
No matching distribution found for apparmor
But then if I comment out apparmor it tells me this
Collecting apturl==0.5.2 (from -r requirements.txt (line 2))
Could not find a version that satisfies the requirement apturl==0.5.2 (from -r requirements.txt (line 2)) (from versions: )
No matching distribution found for apturl==0.5.2 (from -r requirements.txt (line 2))
and it goes on for others randomly. The requirements was made on my local which is also ubuntu 18 so unsure why this works on local but not on a new deploy.
I have also made sure that it's the newest version of pip
apparmor and apturl are Ubuntu packages, you can safely ignore them if your code doesn't use their code; just remove them from requirements.txt. If your code depends on them, ensure they are installed via apt:
apt install -y apparmor apturl && pip install -r requirements.txt
This is a common problem when you don't use virtual enviroment for work with python, so your requirements.txt lists all the packages pythons of your system or OS, when you must have only the packages from your project. In some moment you update your requirements.txt with pip freeze > requirements.txt, without a virtual environment and you updated the requirements.txt with all python packages in your OS and from your project, and maybe uploaded to a repository. So when you want to run in another computer and install all packages you got this kind of error...
Python is installed by default in ubuntu, you must consider this and in other system too.
First rule is work every time with virtual enviroment "virtual env documentation"
I know it's hard work, but you can backup that requirements.txt and clean it. Then try to run your program without any package (a clean install) and when errors occurs from missing packages you add it and update with pip freeze > requirements.txt

Trying to install yolov3 via anaconda

I'm doing my thesis project on object detection and I've decided to use this git hub (https://github.com/reigngt09/yolov3workflow/tree/master/2_YoloV3_Execute) to install yolov3.
However, I'm not able to excute the code conda env create -f yolo.yml
So I tried to use pip install -r requirements.txt but that came up with an error too.
The error I got was
ERROR: Could not find a version that satisfies the requirement mkl-fft==1.0.4 (from -r requirements.txt (line 52)) (from versions: none)
ERROR: No matching distribution found for mkl-fft==1.0.4 (from -r requirements.txt (line 52))
If anyone has any advice, I would really appreciate it. Or if anyone has another more recent git hub I can follow that would be great news!
Try running with a different version, as per https://pypi.org/project/mkl-fft/ the current version is 1.0.6, replace the line in requirements.txt and make it mkl-fft==1.0.6

Using pip 7.1.2 and Python 3.5 completely unable to install any packages

I have a major problem preventing me from setting up my developer environment using pip 7.1.2 and Python 3.5 in a virtual environment. First of all, I can't even update pip, let alone install any packages, as this is always the same error:
(venv) ➜ venv git:(master) ✗ pip install --upgrade pip
Collecting pip
Could not find a version that satisfies the requirement pip (from versions: )
No matching distribution found for pip
Let's try a requirements.txt file that contains the following:
pytz
django==1.11.4
The error produced is the same:
(venv) ➜ venv git:(master) ✗ pip install -r requirements.txt
Collecting pytz (from -r requirements.txt (line 1))
Could not find a version that satisfies the requirement pytz (from -r requirements.txt (line 1)) (from versions: )
No matching distribution found for pytz (from -r requirements.txt (line 1))
Maybe, it's because a version number is missing? Let's add the latest correct package version, 2019.2, and run the install from requirements.txt one more time.
(venv) ➜ venv git:(master) ✗ pip install -r requirements.txt
Collecting pytz==2019.2 (from -r requirements.txt (line 1))
Could not find a version that satisfies the requirement pytz==2019.2 (from -r deploy/requirements.txt (line 1)) (from versions: )
No matching distribution found for pytz==2019.2 (from -r requirements.txt (line 1))
Let's try django, with or without version numbers.
(venv) ➜ venv git:(master) ✗ pip install django
Collecting django
Could not find a version that satisfies the requirement django (from versions: )
No matching distribution found for django
It appears that pip under version 9.0.2 on OSX is incompatible with SSL certificates issued by the new pip servers. To updgrade pip manually from this situation, you need to run the following:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py

Python library can be found in PyPi but can't be installed by 'pip install'

I got django project code and tried to install all the requirements by 'pip install -r requiremets.txt' but somehow it doesn't work.
occurred error is below
Could not find a version that satisfies the requirement mkl-fft==1.0.9 (from -r requirements.txt (line 14)) (from versions: 1.0.0.17, 1.0.2, 1.0.6)
No matching distribution found for mkl-fft==1.0.9 (from -r requirements.txt (line 14))
I tried to upgrade pip but it didnt work.
I should change my question..
I just tried 'pip install mkl-fft' and it worked.. still don't know why 'pip install -r requirements.txt' doesn't work.
Latest version of your package mkl-fft is 1.0.6 but you tried out mkl-fft==1.0.9
refer this link
you can change your version in requirements.txt file and run 'pip install -r requiremets.txt' it will works.

How to get mod_wsgi-express from pip using Dockerfile

I can't recall how I installed mod_wsgi-express, but I'm almost certain that I used pip.
I've got this line in my requirements.txt file:
mod_wsgi-express==4.5.15
Collecting mod_wsgi-express==4.5.15 (from -r /usr/src/app/requirements.txt (line 16))
Could not find a version that satisfies the requirement mod_wsgi-express==4.5.15 (from -r /usr/src/app/requirements.txt (line 16)) (from versions: )
No matching distribution found for mod_wsgi-express==4.5.15 (from -r /usr/src/app/requirements.txt (line 16))
You are using pip version 9.0.0, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Is the naming different here? Or am I just not seeing that package?
$ pip list | grep mod
mod-wsgi (4.5.15)
mod-wsgi-httpd (2.4.23.2)
In requirements.txt: mod_wsgi==4.5.15
The package information can be found on PyPi at:
https://pypi.python.org/pypi/mod_wsgi

Categories

Resources