我已经安装了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
Run Code Online (Sandbox Code Playgroud)
我已经尝试了几乎所有的东西,但仍然什么都没有。
是pyOpenSSL,没有OpenSSL包:
pip install pyOpenSSL
Run Code Online (Sandbox Code Playgroud)
并且pip install requests[security]应该修复警告