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

#1994 (venv) D:\python\f5ttsnew>pip install torch torchaudio torchvision --index-url https://download.pytorch.org/whl/cpuLo

23.165* Posted at: 1 day ago 👁17

(venv) D:\python\f5ttsnew>pip install torch torchaudio torchvision --index-url https://download.pytorch.org/whl/cpu
Looking in indexes: https://download.pytorch.org/whl/cpu
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)'))': /whl/cpu/torch/
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)'))': /whl/cpu/torch/
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)'))': /whl/cpu/torch/
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)'))': /whl/cpu/torch/
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)'))': /whl/cpu/torch/
Could not fetch URL https://download.pytorch.org/whl/cpu/torch/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='download.pytorch.org', port=443): Max retries exceeded with url: /whl/cpu/torch/ (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 torch (from versions: none)
ERROR: No matching distribution found for torch

1 Replies

您遇到的 SSL 证书验证错误(SSLEOFError)与 PyTorch 的 pip 安装源网络连接问题有关,不是 pyVideoTrans 软件本身的问题。这通常是由于网络环境(如公司防火墙、代理设置或特定地区的网络干扰)导致无法正常访问 https://download.pytorch.org

请尝试以下解决方案:

  1. 使用国内镜像源(推荐):将 PyTorch 的安装源更换为国内镜像,例如清华源或阿里云源。命令如下:

    pip install torch torchaudio torchvision -i https://pypi.tuna.tsinghua.edu.cn/simple

    或者使用阿里云镜像:

    pip install torch torchaudio torchvision -i https://mirrors.aliyun.com/pypi/simple/
  2. 临时禁用 SSL 验证(不推荐,仅作测试):如果镜像源也失败,可以临时添加 --trusted-host 参数绕过 SSL 检查(仅用于诊断):

    pip install torch torchaudio torchvision --index-url https://download.pytorch.org/whl/cpu --trusted-host download.pytorch.org
  3. 检查系统代理/防火墙:如果您使用了网络代理(VPN或HTTP代理),请确保 pip 能正确通过代理访问外网,或尝试在关闭代理的环境下安装。

重要提示:此问题是安装 PyTorch 依赖时的通用网络问题。如果您是在部署或运行 pyVideoTrans 时遇到此错误,请确保您的 Python 环境已正确配置网络连接。

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

Similar issues already exist

Trending Questions