当前位置: 首页 > 知识库问答 >
问题:

由于SSL,Pycharm安装包失败

冷正青
2023-03-14

我使用Windows 7虚拟机,我不能添加ctype。我的物理机器运行Ubuntu,互联网连接是无线热点。

错误发生:

无法获取URLhttps://pypi.org/simple/ctypes/:确认ssl证书时出现问题:HTTPSConnectionPool(host='pypi.org',port=443):url:/simple/ctypes超过了最大重试次数/(由SSLError(SSLError(1',ssl.c:499:error:1407742E:ssl例程:SSL23\u GET\u SERVER\u HELLO:tlsv1警报协议版本')引起)-跳过

命令输出:

收集ctypes无法获取URLhttps://pypi.org/simple/ctypes/:确认ssl证书时出现问题:HTTPSConnectionPool(host='pypi.org',port=443):url:/simple/ctypes超过了最大重试次数/(由SSLError(SSLError(1,,)\u ssl.c:499:error:1407742E:ssl例程:SSL23\u GET\u SERVER\u HELLO:tlsv1警报协议版本)引起)-跳过无法获取urlhttps://pypi.org/simple/pip/:确认ssl证书时出现问题:HTTPSConnectionPool(host='pypi.org',port=443):url:/simple/pip/(由SSLError(SSLError(1',ssl.c:499:error:1407742E:ssl例程:SSL23_GET_SERVER.\u HELLO:tlsv1警报协议版本')导致)超过了最大重试次数-跳过

C:\Python27\lib\site-packages\pip-10.0.1-py2.7.egg\pip\_vendor\urllib3\util\ssl_.py:339: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  SNIMissingWarning
C:\Python27\lib\site-packages\pip-10.0.1-py2.7.egg\pip\_vendor\urllib3\util\ssl_.py:137: 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/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '_ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/ctypes/
C:\Python27\lib\site-packages\pip-10.0.1-py2.7.egg\pip\_vendor\urllib3\util\ssl_.py:137: 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/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '_ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/ctypes/
C:\Python27\lib\site-packages\pip-10.0.1-py2.7.egg\pip\_vendor\urllib3\util\ssl_.py:137: 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/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '_ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/ctypes/
C:\Python27\lib\site-packages\pip-10.0.1-py2.7.egg\pip\_vendor\urllib3\util\ssl_.py:137: 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/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '_ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/ctypes/
C:\Python27\lib\site-packages\pip-10.0.1-py2.7.egg\pip\_vendor\urllib3\util\ssl_.py:137: 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/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '_ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/ctypes/
C:\Python27\lib\site-packages\pip-10.0.1-py2.7.egg\pip\_vendor\urllib3\util\ssl_.py:137: 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/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning
  Could not find a version that satisfies the requirement ctypes (from versions: )
No matching distribution found for ctypes
C:\Python27\lib\site-packages\pip-10.0.1-py2.7.egg\pip\_vendor\urllib3\util\ssl_.py:137: 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/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning

共有1个答案

钱志
2023-03-14

尝试升级你的urllib安全包,例如通过pip。

pip install urllib3[secure]

这将指导您:https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2

您的urllib似乎试图通过tlsv1访问pypi。很可能他们不再允许你这么做了。

让你的工具链更新,你会没事的。

更新:

这里已经回答了如何在不同版本的windows上使用pip:如何在windows上安装pip?

 类似资料:
  • 我刚刚把我的Android Studio从1.5升级到2.2,现在当我运行我的应用程序时,我得到了一个错误: 由于APK未签名或签名错误,安装失败。如果这是一个基于Gradle的项目,那么确保在Gradle构建脚本中指定了签名配置。 编辑:即使我将构建变体切换回调试,卸载应用程序,再试一次,我也会得到同样的错误。

  • 我对Laravel的代客有一些问题,所以我试图卸载并重新安装。重新安装时,当我键入命令时,我得到了这个极其冗长的错误 到底是怎么回事,为什么我不能在全球范围内安装代客?我意识到这可能是某种依赖问题/冲突,但对我来说没有意义。

  • 通过作曲家安装照明/数据库失败并生成以下错误: “无法将您的要求解析为一组可安装的程序包。” 问题1-照明/数据库v5。2.0需要照明/支持5.2.*- 照明/支持v5。2.7需要外部mbstring*- 要启用扩展,请验证它们是否正确 在那些地方启用。ini文件:-/etc/php/7.0/cli/php。ini-/etc/php/7.0/cli/conf.d/10-opcache。ini-/e

  • 主要内容:安装步骤在本章中,您将详细了解PyCharm在本地计算机上的安装过程。 安装步骤 必须按照以下步骤在系统上安装PyCharm。 这些步骤显示了从将PyCharm软件包从其官方网站下载到创建新项目的安装过程。 第1步 从PyCharm的官方网站下载所需的软件包或可执行文件 https://www.jetbrains.com/pycharm/download/#section=windows 在这里您会看到两

  • 我正在尝试使用调试设置来运行应用程序,所以应该没有必要对应用程序进行签名,因为它将在构建时被赋予临时签名。

  • 很抱歉另一个pip问题,但我已经尝试了几乎所有其他线程,到目前为止没有任何工作。所以我有问题,pip不安装任何包,由于使用TLSv1.0 我已经完成了curl以下载get_pip。py脚本然后用sudopython执行它。 我尝试过手动下载pip.tar.gz,提取它并通过pip安装安装。/pip.10.0.3 安装后,我完成了 我已经通过自制安装了python。 但是每次我仍然得到这个TLSv1