python - 不安全平台警告 : A true SSLContext object is not available

标签 python ssl

我想将 python 项目从 CentOS 设置到 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

请帮助/指导我。我对这些东西很陌生

最佳答案

尝试从 requirements.txt 中一个一个地安装包,当您找到引发此错误的包时,尝试为该特定包寻找解决方案。

关于python - 不安全平台警告 : A true SSLContext object is not available,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47634848/

相关文章:

python - mod_wsgi 错误 - class.__dict__ 在受限模式下不可访问

python - 递归只打印一个列表

python - `if x` 或 `if x != 0` 哪个更快?

security - 在 OAuth(1.0a 和 2.0)和 Http Basic Auth

java - 理解 keystore 和 SSL 的问题

azure - 通过 Azure 设置 SSL 证书后运行本地主机的问题

python - "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' ' at line 1"

python - SSL 传输上的异步 fatal error - IndexError Deque 索引超出范围

html - https 站点上的 hitbox iframe

python - 将连续特定值的第一行保留在 pandas 数据框中?