I have a pypiserver running locally with one package already deployed. The server is responding on localhost:8080 and i can see and download the package manually.
But every time I try to install the package through pipenv it can't find it :( Any help would be appreciated ;)
$ pipenv install invault --pypi-mirror http://localhost:8080
Installing invault...
Error: An error occurred while installing invault!
Error text: Looking in indexes: http://localhost:8080, http://localhost:8080/simple
ERROR: Could not find a version that satisfies the requirement invault (from versions: none)
ERROR: No matching distribution found for invault
✘ Installation Failed
I have tried installing the package invasion_PGF but constantly get the error messages:
Could not find a version that satisfies the requirement invasion_PGF (from versions: none)
and
No matching distribution found for invasion_PGF.
I was installing using the command: pip install invasion_PGF in the Anaconda command prompt.
Can someone help me with ideas on how to deal with this?
Tried to install unityagents agents using pip install unityagents command but I'm getting this error:
ERROR: No matching distribution found for tensorflow==1.7.1 (from unityagents)
Im using tensorflow version 2.2.1
It looks like the pypi release you're installing is around 2 years old.
The way you're supposed to install the package from the mlagents package instead. See the full instructions.
In trying to push to heroku I am getting a "build failed" error.
In checking the logs I see it's because of the following:
ERROR: Could not find a version that satisfies the requirement newscatcher==0.1.0 (from -r /tmp/build_3ad91c7bdb0b7ae3e65e7d3b8ae455f7/requirements.txt (line 13)) (from versions: none)
ERROR: No matching distribution found for newscatcher==0.1.0 (from -r /tmp/build_3ad91c7bdb0b7ae3e65e7d3b8ae455f7/requirements.txt (line 13))
! Push rejected, failed to compile Python app.
! Push failed
It looks like there's an incorrect version of the "newscatcher" library I am trying to use. However, this is the correct version according to PyPi.
In addition I have already performed a pip3 freeze > requirements.txt in order to collect all dependencies I know to be relevant. How come the correct version of a git supported pip package is throwing this error? How do I fix this?
I'm trying to install Flask-ACL:
https://mikeboers.github.io/Flask-ACL
$ pip search acl | grep -i flask
Flask-ACL (0.0.1) - Access control lists for Flask.
flask-miracle-acl (0.2) - The fabric between the Flask framework and Miracle ACL
Flask-Sandbox (0.1.0)- ACL Route controls for Flask
Flask-SimpleACL (1.2)- Simple ACL extension
$ pip install Flask-ACL
Collecting Flask-ACL
Could not find a version that satisfies the requirement Flask-ACL (from versions: )
No matching distribution found for Flask-ACL
What's wrong here?
P.S. Pip was upgraded a few minutes ago.
UPDATE:
$ python --version
Python 2.7.3
I'm running it under virtualenv.
pip install -Iv Flask-ACL
Collecting Flask-ACL
1 location(s) to search for versions of Flask-ACL:
* https://pypi.python.org/simple/flask-acl/
Getting page https://pypi.python.org/simple/flask-acl/
Looking up "https://pypi.python.org/simple/flask-acl/" in the cache
Current age based on date: 507
Freshness lifetime from max-age: 600
Freshness lifetime from request max-age: 600
The response is "fresh", returning cached response
600 > 507
Analyzing links from page https://pypi.python.org/simple/flask-acl/
Could not find a version that satisfies the requirement Flask-ACL (from versions: )
Cleaning up...
No matching distribution found for Flask-ACL
As I can see, there is no such package on Pypi:
https://pypi.python.org/simple/flask-acl/
but this one exist:
https://pypi.python.org/pypi/Flask-ACL
What is wrong with my pip?
The developers of Flask-ACL made a mistake that they did not manage to upload the Flask-ACL library onto PyPi(where pip searches for modules). so you will have to install it using pip from their GitHub page.
You can do so like this:
pip install "git+https://github.com/mikeboers/Flask-ACL"
A more common reason for this type of error is probably that your environment does not meet the package's requirements.
For example, this occurs if your environment's Python version does not match the required Python version specified by the package:
(my_python36_env)> pip install package_that_requires_python37
ERROR: Could not find a version that satisfies the requirement package_that_requires_python37.
ERROR: No matching distribution found for package_that_requires_python37.
Pay attention if your file ~/.pip/pip.conf not contain any additional index-url values.
Then it can trying to look for specific package version in repository that not exists.
Some workaround solution is to remove pip.conf
I had flask installed in the anaconda but it had some issues when it import it using
from tensorflow.keras.applications.imagenet_utils import preprocess_input, decode_predictions
so instead of the above command, i changed it to
from tensorflow.python.keras.applications.imagenet_utils import preprocess_input, decode_predictions
and it worked fine