Error could not find a version that satisfies the requirement django from versions none

I was able to install django once in a virtual enviroment. Now whenever i try to install it with pip install django==2.07 it returns: Cache entry deserialization failed, entry ignored Retr...

I was able to install django once in a virtual enviroment. Now whenever i try to install it with

pip install django==2.07

it returns:

 Cache entry deserialization failed, entry ignored
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused',))': /simple/django/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused',))': /simple/django/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused',))': /simple/django/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused',))': /simple/django/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused',))': /simple/django/
  Could not find a version that satisfies the requirement django==2.0.7 (from versions: )
No matching distribution found for django==2.0.7

Also I have:
pip- 10.0.1
virtualenv- 16.0.0

This is killing me. I believe it has something to do with pip. I am a beginner so walk me through. Thanks!

  • #1

Здраствуйте, всегда когда я хочу установить какой нибудь модуль например django выскакивает это:

ERROR: Could not find a version that satisfies the requirement Django (from versions: none)
ERROR: No matching distribution found for Django
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=’pypi.org’, port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)’))) — skipping

подскажите пожалуйста как решить проблему

ymoto


  • #2

Для установки модуля надо в павер шел водить команду для его установки по типу pip install pyTelegramBotAPI .Какая у вас версия Python. И какая у вас операционнвя система

  • #3

python 3.8.2 windows 10 home 64-bit

  • #4

подскажите пожалуйста как решить проблему

Попробуйте так:

Код:

pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org pip setuptools
pip install django

Если не поможет — попробуйте easy-install easy_install <package_name> или устанавливайте модули через whl install wheel_package_name.whl

Sometimes you get an error when you’re trying to install a Python package
using pip. It looks like this:

Could not find a version that satisfies the requirement (from versions:)
No matching distribution found for

Some probable reasons for this error are:

  1. PyPI server isn’t responding to your requests. It can happen either because
    the PyPI server is down or because it has blacklisted your IP address. This
    happened to me once when I was trying installing packages on a server.
    This can be fixed by using a proxy with pip. See the solution below.

  2. You’re running an older pip (especially on Mac). This can be fixed by
    upgrading your pip.
    See this post on Stack Overflow.
    Thanks to Anupam Jain who pointed this in a comment.

  3. The package you’re trying to install is not available for your Python version.

  4. The package is not available for your operating system. This is a rare case
    and only happens when the package is not pure-Python, i.e. it’s been
    partially written in C or Cython. Such a package needs to be compiled for
    every operating system (Windows/Mac/Linux) and architecture (32-bit/64-bit).
    Suppose a package has only been compiled for Windows 64-bit, then you’ll get
    this error if you try to install it on Windows 32-bit, or any other
    OS.

  5. The package is not present on PyPI server. In this case pip will not work. So
    you’ll have to download and install the package manually from Github or wherever
    it is available.

Solution¶

I had this issue because PyPI server had blacklisted the IP
of my hosting provider, the obvious solution was to make pip install via a proxy.

But to see if that’s also the case with you, you can test it like this:

$ curl https://pypi.org

The requestors Network has been blacklisted due to excessive request volume. 
If you are a hosting customer, please contact your hosting company's support. 
If you are the hosting company, please contact infrastructure-staff@python.org to resolve

If you see the message similar to above, that means your IP has also been
blacklisted by https://pypi.org.

If you don’t see this message then the reason for the pip error could be that you’re using
an older version. See this post on Stack Overflow
for a solution.

Anyways, this can be fixed by using a proxy with pip.

Supplying a proxy address to pip is easy:

$ pip install -r requirements.txt --proxy address:port

Above, address and port are IP address and port of the proxy.

To find proxies, just search Google for proxy list.

Other things that I tried¶

These are some other things that I tried to get rid of this issue.
Although they didn’t work for me, but they might work for you.

  1. Changing DNS resolver of my server.
    This makes sense if your server’s DNS resolver can’t find PyPI servers.
  2. Reconfiguring SSL, reinstalling CA certificates.
    This makes sense if you don’t have updated CA certificates which are used by
    PyPI servers.
  3. Downloading packages using wget.
    This is an alternative way to install Python packages. Download them via wget
    and then install them using python setup.py install. In my case, the server was
    blacklisted by PyPI so I was getting a 403 Forbidden error.
  4. Downloading packages using curl.
    Alternative to wget. In my case I didn’t get a 403 error but rather it just
    created invalid tarball files, instead of actually downloading them.
  5. Downloading packages using git or hg.
    If your desired packages have git or hg repositories that you can clone, this
    is a good workaround.

I have seen a few related questions, and I’ve tried all of their recommendations:

  • I’m using anaconda, so I downgraded from 3.7 to 3.6
  • I upgraded pip using curl https://bootstrap.pypa.io/get-pip.py | sudo python
  • I installed the latest version of openssl (1.1.1)
  • I updated all Anaconda libraries
  • I am connected to the Internet (obviously, since I’m posting here) and not behind a firewall.

And yet, every time I run «pip install » or «pip install ==» I get the following error:

ERROR: Could not find a version that satisfies the requirement (from versions: none)
ERROR: No matching distribution found for

I’m on a Mac, Mojave v10.14.4

I recently installed prodigy.ai, which seemed to replace a bunch of packages with (perhaps) older versions, but I still cannot figure out how to fix this issue. The one thing I haven’t tried is uninstalling Anaconda and reinstalling it.

Thanks for any help on this.

asked Apr 26, 2019 at 18:10

jsidell's user avatar

11

Yes, it happened to me also.

A common case in this procedure is to check if you have not made a typo when entering the package name.

answered Jun 18, 2019 at 9:15

simhumileco's user avatar

simhumilecosimhumileco

6577 silver badges14 bronze badges

Ah I see the Python versions case specifically is now handled, via #9708. Example output (when using Python 3.7 and a package that has dropped support for 3.7):

$ pip install ipython==8.5.0
ERROR: Ignored the following versions that require a different python version: 8.0.0 Requires-Python >=3.8; 8.0.0a1 Requires-Python >=3.8; 8.0.0b1 Requires-Python >=3.8; 8.0.0rc1 Requires-Python >=3.8; 8.0.1 Requires-Python >=3.8; 8.1.0 Requires-Python >=3.8; 8.1.1 Requires-Python >=3.8; 8.2.0 Requires-Python >=3.8; 8.3.0 Requires-Python >=3.8; 8.4.0 Requires-Python >=3.8; 8.5.0 Requires-Python >=3.8
ERROR: Could not find a version that satisfies the requirement ipython==8.5.0 (from versions: 0.10, 0.10.1, 0.10.2, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.13.2, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 4.0.0b1, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.1.0rc1, 4.1.0rc2, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 5.0.0b1, 5.0.0b2, 5.0.0b3, 5.0.0b4, 5.0.0rc1, 5.0.0, 5.1.0, 5.2.0, 5.2.1, 5.2.2, 5.3.0, 5.4.0, 5.4.1, 5.5.0, 5.6.0, 5.7.0, 5.8.0, 5.9.0, 5.10.0, 6.0.0rc1, 6.0.0, 6.1.0, 6.2.0, 6.2.1, 6.3.0, 6.3.1, 6.4.0, 6.5.0, 7.0.0b1, 7.0.0rc1, 7.0.0, 7.0.1, 7.1.0, 7.1.1, 7.2.0, 7.3.0, 7.4.0, 7.5.0, 7.6.0, 7.6.1, 7.7.0, 7.8.0, 7.9.0, 7.10.0, 7.10.1, 7.10.2, 7.11.0, 7.11.1, 7.12.0, 7.13.0, 7.14.0, 7.15.0, 7.16.0, 7.16.1, 7.16.2, 7.16.3, 7.17.0, 7.18.0, 7.18.1, 7.19.0, 7.20.0, 7.21.0, 7.22.0, 7.23.0, 7.23.1, 7.24.0, 7.24.1, 7.25.0, 7.26.0, 7.27.0, 7.28.0, 7.29.0, 7.30.0, 7.30.1, 7.31.0, 7.31.1, 7.32.0, 7.33.0, 7.34.0)
ERROR: No matching distribution found for ipython==8.5.0

The case I saw more recently that still had confusing UX, was for a platform mismatch (a user trying to install a Windows package on Linux):
moneymeets/python-poetry-buildpack#49

Can’t install module django_filters

Hi, I’m trying to install module — django_filters but I’m getting following error:

Looking in links: /usr/share/pip-wheels
ERROR: Could not find a version that satisfies the requirement django_filters (from versions: none)
ERROR: No matching distribution found for django_filters

Why is that so? I’m using Django==3.1.1 and Python 3.8.0

edit: the module name is django-filter, that is why i recevied an error..

deleted-user-8451491
|
5
posts
|



Oct. 5, 2020, 3:58 p.m.

|
permalink

Glad you found the problem.

Staff

glenn
|
8701
posts
|

PythonAnywhere staff
|



Oct. 5, 2020, 5:02 p.m.

|
permalink

Понравилась статья? Поделить с друзьями:
  • Error could not determine sdk root
  • Error could not determine polymorphic type because input has type unknown
  • Error could not determine executable to run
  • Error could not create the java virtual machine сервер майнкрафт
  • Error could not create the java virtual machine как решить