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
Related
I'm a beginner and I'm getting this error, can someone with more experience help me?
ERROR: Could not find a version that satisfies the requirement
rest-framework (unavailable) (from versions: none)
ERROR: No matching distribution found for rest-framework
(unavailable)
ERROR: Service 'web' failed to build : Build failed
I've tried using the commands below but it didn't solve the problem.
pip install djangorestframework-jsonapi
pip3 install djangorestframework-jsonapi
pip install -r requirements.txt --proxy address:port
python -m pip install --upgrade pip
python3 --version
Python 3.10.6
print(django.get_version())
3.2.12
pip show djangorestframework
Name: djangorestframework / Version: 3.14.0
cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"
Your error messages says
ERROR: Could not find a version that satisfies the requirement rest-framework (unavailable) (from versions: none)
which means that your requirements.txt file is listing rest-framework as a requirement. However, there is no such module listed on PyPI. Did you mean to use python-rest-framework instead, or some other django-specific package?
Fix your requirements.txt file to make sure it correctly lists your dependencies, and things should work. To make sure you have the correct package name, it should exist on https://pypi.org. https://pypi.org/search/?q=rest-framework lists a number of possibilities you might have meant to use.
PS: pip install djangorestframework-jsonapi already installed module rest_framework for me, so maybe the correct replacement for rest-framework in your requirements.txt is simply pip install djangorestframework-jsonapi.
See also: https://django-rest-framework-json-api.readthedocs.io/en/stable/getting-started.html#installation
I want to install the package existing in this repository in my anaconda enviroment
https://github.com/ChrisCummins/ProGraML
they say to use the command 'pip install -U programl'
but I keep getting this error
ERROR: Could not find a version that satisfies the requirement programl (from versions: none)
ERROR: No matching distribution found for programl
I have tried updating pip, creating another environment, cloning the programl repository and downloading the requirements.txt but to no result
I can't figure out what I'm missing
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
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.
I have few dependencies in a project listed in the requirements.txt file,
requests==2.18.4
secrets==1.0.2
PyYAML==3.12
I wanted to installed them and called the command inside the virtualenv,
$ pip install -r bin/requirements.txt
I get the message provided below,
Collecting requests==2.18.4 (from -r bin/requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/49/df/50aa1999ab9bde74656c2919d9c0c085fd2b3775fd3eca826012bef76d8c/requests-2.18.4-py2.py3-none-any.whl
Collecting secrets==1.0.2 (from -r bin/requirements.txt (line 2))
Could not find a version that satisfies the requirement secrets==1.0.2 (from -r bin/requirements.txt (line 2)) (from versions: )
No matching distribution found for secrets==1.0.2 (from -r bin/requirements.txt (line 2))
Inside the virtualenv, I can have the versions provided,
$ python -V
Python 3.7.2
$ pip -V
pip 19.0.3 from /Users/chaklader/PycharmProjects/Welance-Craft/env/lib/python3.7/site-packages/pip (python 3.7)
Whats the issue here?
Update
I had to delete the secrets and update the other dependencies:
requests==2.21.0
PyYAML==3.13
While there is a secrets package, it’s very old (2012), has only one release, a broken website, and no info. It doesn’t appear to install on Python 2.7 or 3.7.
You may instead be trying to use the secrets standard library that’s built-in to Python 3.6+. It’s not a package, so you don’t need to install it or add it to your requirements.txt, simply import secrets. If you need it for an earlier version, there does appear to be an unofficial backport.
When trying to install the package myself, I get the same error.
However, when searching this package on pypi.org, it seems that the last released version was in 2012 and the link there to the project's homepage leads to an almost completely empty webpage. I would thus assume that this package doesn't exist anymore.
Now there is a backport of the secrets module for Python 2.7, 3.4 and 3.5 by the name of python2-secrets. (the name is a bit confusing in my opinion)
Installation:
pip install --user python2-secrets
I got the same issue recently(2022) and solved this with
pip install python-secrets
see documentation in https://pypi.org/project/python-secrets/