InsecurePlatformWarning when installing OpenSSL in python 2.7 (Windows 8.1)

I have installed pyOpenSSL and all required packages, but I get this warning when 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.

+3


source to share


1 answer


This is pyOpenSSL, no package OpenSSL

:

pip install pyOpenSSL

      



And pip install requests[security]

should fix the warning

+2


source







All Articles