python - 在 python 2.7 (windows 8.1) 中安装 OpenSSL 时出现 InsecurePlatformWarning

标签 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

我已经尝试了几乎所有方法,但仍然一无所获。

最佳答案

是pyOpenSSL,没有OpenSSL包:

pip install pyOpenSSL

并且 pip install requests[security] 应该修复警告

关于python - 在 python 2.7 (windows 8.1) 中安装 OpenSSL 时出现 InsecurePlatformWarning,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31813429/

相关文章:

python - JSON 架构验证失败 - 错误不是 'object' 类型

node.js - nodejs 中使用的默认 CA 证书在哪里?

encryption - Go 相当于 OpenSSL EVP 对称 EVP_aes_256_cbc

python - 将嵌套字典展平为列表列表

python - 在 NLTK 中实现词袋朴素贝叶斯分类器

Python:计算文件中一组字符串的出现次数

python - 如何将包含日期列表作为字符串的列展平为日期?

c# - OpenSSL .NET c# 包装器 X509 认证

OpenSSL 二进制分发 : meaning of the char at the end of version

node.js - 错误 : node. js 未使用 openssl 加密支持进行编译