Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

InsecurePlatformWarning while installing OpenSSL in python 2.7 (windows 8.1)

Tags:

python

openssl

I have installed pyOpenSSL and all the required packages but i get this warning while installing OpenSSL .

$ pip install OpenSSL
Collecting OpenSSL
C:\python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py:90: InsecurePlatformWarning: A true SSL
Context object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL conn
ections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarni
ng.
  InsecurePlatformWarning
  Could not find a version that satisfies the requirement OpenSSL (from versions: )
No matching distribution found for OpenSSL

I 've tried almost everything but still nothing.

like image 463
Prometheus Avatar asked Aug 04 '15 15:08

Prometheus


1 Answers

It is pyOpenSSL, there is no OpenSSL package:

pip install pyOpenSSL

And pip install requests[security] should fix the warning

like image 73
Padraic Cunningham Avatar answered Oct 17 '22 01:10

Padraic Cunningham