InsecurePlatformWarning:真正的SSLContext对象不可用

时间:2017-12-04 13:47:39

标签: python ssl

我想将CentOS中的python项目设置为windows。当“ pip install requirement.txt ”出现以下错误时:

c:\python27\lib\site-
packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py:122: 
InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.

InsecurePlatformWarning
Could not find a version that satisfies the requirement requirements.txt (from versions: )
No matching distribution found for requirements.txt

请帮助/指导我。我是新来的这些东西

1 个答案:

答案 0 :(得分:0)

尝试从requirements.txt逐个安装软件包,当您发现引发此错误的软件包时,请尝试为该特定软件包寻找解决方案。