点击查看 Edge-TTS 配音渠道无法使用的解决办法!!!

#1952 (venv) D:\python\f5ttsnew>pip install -e .Obtaining file:///D:/python/f5ttsnew Installing build dependencies ... err

199.91* Posted at: 12 hours ago 👁11

(venv) D:\python\f5ttsnew>pip install -e .
Obtaining file:///D:/python/f5ttsnew
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [9 lines of output]

  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))': /simple/setuptools/
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))': /simple/setuptools/
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))': /simple/setuptools/
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))': /simple/setuptools/
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))': /simple/setuptools/
  Could not fetch URL https://pypi.org/simple/setuptools/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/setuptools/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))) - skipping
  ERROR: Could not find a version that satisfies the requirement setuptools>=61.0 (from versions: none)
  ERROR: No matching distribution found for setuptools>=61.0
  Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))) - skipping
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))) - skipping

1 Replies

您遇到的 SSLEOFError 错误是由于 pip 无法通过 SSL 安全连接到 PyPI 服务器(pypi.org)导致的,这通常与网络环境有关,例如公司防火墙、代理设置或系统 SSL 证书问题。

请按以下步骤尝试解决:

  1. 临时禁用 SSL 验证(不推荐长期使用,仅用于测试):
    在 pip 命令后添加 --trusted-host pypi.org --trusted-host files.pythonhosted.org 参数。

    pip install -e . --trusted-host pypi.org --trusted-host files.pythonhosted.org
  2. 使用国内镜像源(推荐):
    将 pip 的下载源切换到国内镜像站,例如清华源或阿里云源。

    pip install -e . -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn

    pip install -e . -i https://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
  3. 检查系统代理/防火墙:

    • 如果您使用了网络代理(VPN或公司代理),请确保命令行环境(如CMD或PowerShell)也配置了正确的代理。可以尝试在命令前设置代理环境变量:

      set HTTP_PROXY=http://your_proxy:port
      set HTTPS_PROXY=http://your_proxy:port
      pip install -e .
    • 临时关闭防火墙或安全软件进行测试。
  4. 升级 pip 并检查 Python/OpenSSL 版本:

    • 尝试使用 python -m pip install --upgrade pip(同样可能需要添加 --trusted-host 参数)。
    • 确保您的 Python 版本不是过于陈旧,并且系统 OpenSSL 库正常。

如果以上方法均无效,可能是您所在网络对 PyPI 有特殊限制,请咨询网络管理员。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Trending Questions