gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 11:01:15 26 4
gpt4 key购买 nike

我已经安装了 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com