提问人:Hack-R 提问时间:6/7/2018 更新时间:6/7/2018 访问量:1052
pip install requests[security] 本身抛出 InsecurePlatform 警告/错误
pip install requests[security] itself throws InsecurePlatform warning/error
问:
运行以通过消息安装包时pip
https
InsecurePlatform警告
是自称的“警告”,其实是一个错误。它会导致安装失败。解决方法是安装安全功能pip
pip install requests[security]
或
pip install pyOpenSSL ndg-httpsclient pyasn1
我很确定这个解决方案过去在几台机器上对我有用。但是,该解决方案在我的一台机器上抛出相同的错误:
E:\Python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py :122: InsecurePlatformWarning: A true SSLContext object is not available. This p revents urllib3 from configuring SSL appropriately and may cause certain SSL con nections to fail. You can upgrade to a newer version of Python to solve this. Fo r more information, see https://urllib3.readthedocs.io/en/latest/security.html#i nsecureplatformwarning. InsecurePlatformWarning
至于接受消息中的建议来升级 Python,我不能针对这个特定的机器和用例。
答: 暂无答案
评论
pip
pip install pyopenssl>=0.14 cryptography>=1.3.4 idna>=2.0.0