在python 2.7(Windows 8.1)中安装OpenSSL时的InsecurePlatformWarning

时间:2015-08-04 15:33:11

标签: python openssl

我已经安装了 pyOpenSSL 以及所有必需的软件包,但是在安装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

我几乎尝试了所有东西,但仍然没有。

1 个答案:

答案 0 :(得分:3)

是pyOpenSSL,没有OpenSSL包:

pip install pyOpenSSL

pip install requests[security]应该修正警告