fails for every ...">

Pip install does not work for each package ("Could not find a version that meets the requirements")

pip install <package name>fails for every package for me. This is what I get:

Could not find a version that satisfies the requirement <package-name
(from versions: )
No matching distribution found for <package-name>

Saw similar questions on SO but doesn't seem to be completely related to this.

In addition, this message suggests that this may happen if PyPi is down or my IP address is blacklisted. It seems that both are wrong for my case.

pip shows relevance at startup pip install --upgrade pip

+4
source share
2 answers

Update the protocol as follows:

curl https://bootstrap.pypa.io/get-pip.py | python

: Python.org TLS 1.0 1.1. , Mac OSX 10.12 pip, , .

( , pip install --upgrade pip . )

( this twitter ):

Mac, pip PyPI:

macOS/OS X 10.12 , (9.0.3) Python :

curl https://bootstrap.pypa.io/get-pip.py | python

8 .

Pip 9.0.3 TLSv1.2 Python macOS < 10,13. : https://pip.pypa.io/en/stable/news/

, Python:

. , TLSv1.0 TLSv1.1 . 11 , 15:37 UTC

. , TLSv1.0 TLSv1.1 HTTP 403 . 8 , 15:49 UTC

, , , setuptools :

pip install --upgrade setuptools
+13

TLS 1.0 1.1 PyPI. , .

, TLS?

python

. :

, pypi HTTPS ( ), () SSL. . , .

Debian :

apt-get update && apt-get upgrade python-pip

RedHat:

yum update python-pip # (or python2-pip, at least on RH7)

Mac:

sudo easy_install -U pip

openssl .

+2

Source: https://habr.com/ru/post/1696006/


All Articles