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