1

Using windows machine, python 2.7, pip 9.0.1 from c:\python27\lib\site-packages (python 2.7).

pip = 9.0.1
python = 2.7
os =  windows 10 Pro

while installing any package.

eg., pip install pyopenssl throughs below error.

SNIMissingWarning

while trying easy_install.

eg., easy_install PyOpenSSL throughs below error.

easy-install

Dhananjayan
  • 562
  • 5
  • 23
  • Did you try "pip install requests[security]"? – Prateek Dewan Apr 17 '18 at 10:10
  • did you update/upgade pip ? on which OS are you ? (and maybe have a look : https://stackoverflow.com/questions/7340784/easy-install-pyopenssl-error) – Dadep Apr 17 '18 at 10:10
  • @Dadep - I am using windows 10 Pro – Dhananjayan Apr 17 '18 at 10:14
  • Does `easy_install` fail for a similar reason? – Oleh Rybalchenko Apr 17 '18 at 10:15
  • @PrateekDewan I haven't used that. If I need to install pytest-runner it will be helpful? – Dhananjayan Apr 17 '18 at 10:17
  • @OlegRybalchenko I have updated easy install method error screenshot. – Dhananjayan Apr 17 '18 at 10:26
  • first try `pip install urllib3[secure]` . May be it could work. Because this error comes usually by urllib3 package. – Chanda Korat Apr 17 '18 at 10:27
  • @Dhananjayan Python 2.x standard SSL module has some limitations to use SNI till this functionality was backported from 3.x in 2.7.9. PyOpenSSL installation may solve this issue. Try to get it directly from PyPi: `easy_install http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.12.tar.gz` – Oleh Rybalchenko Apr 17 '18 at 10:43
  • @ChandaKorat it throws first screenshot error – Dhananjayan Apr 17 '18 at 11:03
  • @OlegRybalchenko it throws `error: Download error for http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.12.tar.gz: [Errno 1] _ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version` – Dhananjayan Apr 17 '18 at 11:05
  • @Dhananjayan, try to download the archive from the link and install it with pip from a local file – Oleh Rybalchenko Apr 17 '18 at 12:28
  • 1
    Possible duplicate of [pip install fails for every package ("Could not find a version that satisfies the requirement")](https://stackoverflow.com/questions/49748063/pip-install-fails-for-every-package-could-not-find-a-version-that-satisfies-th) – phd Apr 17 '18 at 12:53
  • @OlegRybalchenko It is not possible, every library has dependencies. whenever it needs to download library it throws download error as shown in the 2nd screenshot. – Dhananjayan Apr 17 '18 at 13:00
  • @phd It does not throws SNIMissing warning and download error. – Dhananjayan Apr 17 '18 at 13:01
  • @Dhananjayan Doesn't matter, really. It's an SSL error due to old SSL and old Python. Everything must be upgraded for `pip` to be usable. – phd Apr 17 '18 at 13:03

0 Answers0