I have a requirements.txt that I'm pip installing from (pip install -r requirements.txt)
requirements.txt
numpy==1.18.2
pandas==1.1.4
requests==2.24.0
...
I'm getting a lot of errors with modules giving me this kind of error:
ERROR: Could not find a version that satisfies the requirement module==x.y.z
ERROR: No matching distribution found for module==x.y.z
So I'm debugging and I'd like to try using official download links instead of version numbers. I hope that I'm making sense, because I'm not too familiar with it yet but hopefully I'm being clear enough.
So instead of:
numpy==1.18.2
I would have:
numpy==https://pypi.org/project/numpy/1.23.0rc1/
Related
I'm trying to install cdqa but it seems like the library is missing from pypi. it shows this message:
ERROR: Could not find a version that satisfies the requirement cdqa==1.3.9 (from versions: none)
ERROR: No matching distribution found for cdqa==1.3.9
anyone knows what happened and how to fix this?
The project of cdpa(https://pypi.org/project/cdqa/) is 404 now. You can try install it from source code. Quote from the github as below:
git clone https://github.com/cdqa-suite/cdQA.git
cd cdQA
pip install -e .
So I am trying to install pylint using pip, as my work machine is offline I have downloaded pylint using pip and transferred this using a CD. As part of pylint download it also brought down asteroid, colorama, isort, lazy_object_proxy, McCabe, six, typed ast and wrapt.
However when running the install for pylint using the following command inside the directory with all the above files in:
python -m pip install --no-index --find-links . -r requirements.txt
This starts to work with it collecting pylint, isort and a couple of others, however after collecting asteroid it goes to collect lazy object proxy (which is in the directory) and gives the following error:
Could not find a version that satisfies the requirement lazy-object-proxy (from asteroid<3,>=2.2.0->pylint->-r requirements.txt (line 1)) (from versions: ) No matching distribution found for lazy-object-proxy (from asteroid<3,>=2.2.0->pylint->-r requirements.txt (line 1))
The version of lazy object proxy downloaded is 1.4.1
Im fairly new to this so maybe there is something in this error that highlights why it doesn't see or like the version that is downloaded and in the directory, any help would be much appreciated.
OS is windows 7, running python version 3.6.0
NOTE: even trying to just install lazy object proxy on its own fails saying it doesn't exist, its like its not there although it is in the folder.
I've published a project to PyPI for the first time (https://pypi.org/project/xontrib-autojump/). But I get the following error when I try to install the project with this pip command:
$ pip install xontrib-autojump --user
Collecting xontrib-autojump
Could not find a version that satisfies the requirement xontrib-autojump (from versions: 0.1.linux-x86_64, 0.2.linux-x86_64, 0.3.linux-x86_64, 0.4.linux-x86_64)
No matching distribution found for xontrib-autojump
This project does appear when I run pip search xontrib-autojump:
$ pip search xontrib-autojump
xontrib-autojump (0.4) - autojump support for xonsh
...
Why can't I install this package with pip?
There are a number of possible problem areas - the main one is that it looks to me that you have not followed the naming convention needed to specify which python version the download is suitable for.
It is also a very good idea to set the metadata as this assist with finding packages.
The Packaging Tutorial is very helpful on this. It is also recommend that you test the upload and install process using the test instance of pypi.
The other big problem st that you "package" does not contain any python code and is not a python package in any way shape or form.
I'm trying to install django-trumbowyg https://github.com/sandino/django-trumbowyg to my app
When I did pip install django-trumbowyg, it returned this error:
Could not find a version that satisfies the requirement django-trumbowyg (from versions: )
No matching distribution found for django-trumbowyg
Does anyone know what this means? And how I can fix it?
As https://pypi.python.org/pypi/django-trumbowyg#downloads shows, there's only a binary package for Python2 at PyPI.
So, you have to install the package directly from the official sources as pointed out by Rishav in the meantime.
Then ask the developer to upload a source package to PyPI and/or build the wheel as universal.
You may also get this error if your company firewall doesnt allow any package from external source. you might need to add a proxy in that case.
for example: pip install django-trumbowyg --proxy=proxy.companydomain.com:
This is a very simple problem, but I’m completely stuck on how to solve it. I couldn’t even found a way for just downloading.
The website don’t give anything for downloading it outside pypi and without smug.
$ pip install --allow-external gitlib gitlib
Collecting gitlib
Could not find a version that satisfies the requirement gitlib (from versions: )
Some insecure and unverifiable files were ignored (use --allow-unverified gitlib to allow).
No matching distribution found for gitlib
Using the required options doesn’t solve the problem.
$ pip install --allow-all-external --allow-unverified gitlib gitlib==0.5
Collecting gitlib==0.5
Could not find a version that satisfies the requirement gitlib==0.5 (from versions: )
No matching distribution found for gitlib==0.5
Pypi is only a list of registered projects -- if the package is listed at a download URL, you will need to follow that path to get the actual code to install.
In your case, you could git clone or pip install from git://mcnabbs.org/smug.git. If there's issues cloning or downloading, that's not something anyone here would be able to help you out with -- the package maintainer has decided to self-host his code.
More generally, pip interacts with pypi. Pypi is a package index for code that is not in the standard library. Much of this code is third-party/non-official. It's important to note that there is no promise of quality, functionality, or ability to install this code directly from pip.
In the case of "Gitlab" as per pypi, there's no promise that the code is actually true to its marketing of being a "Pythonic low-level Git library", there's no guarantee that the download URL is direct (or correct or even working), and it's a perfect example of the value of knowing that this information is maintained by the person that registered that package on pypi.