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

#1954 (venv) D:\python\f5ttsnew>set HTTP_PROXY=http://your_proxy:port(venv) D:\python\f5ttsnew>set HTTPS_PROXY=http://yo

45.146* Posted at: 12 hours ago 👁10

(venv) D:\python\f5ttsnew>set HTTP_PROXY=http://your_proxy:port

(venv) D:\python\f5ttsnew>set HTTPS_PROXY=http://your_proxy:port

(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
╰─> [2 lines of output]

  ERROR: Could not install packages due to an OSError: Failed to parse: http://your_proxy:port

  [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.

(venv) D:\python\f5ttsnew>python -m pip install --upgrade pip
Requirement already satisfied: pip in d:\python\f5ttsnew\venv\lib\site-packages (22.0.4)
ERROR: Could not install packages due to an OSError: Failed to parse: http://your_proxy:port

1 Replies

您的问题与 pyVideoTrans 软件本身无关,而是在安装其依赖项 F5-TTS 时,环境变量中的代理设置格式错误导致的。

错误信息 Failed to parse: http://your_proxy:port 表明,您设置的代理地址 http://your_proxy:port 只是一个占位符,没有替换为真实的代理服务器地址和端口。

解决方法:

  1. 清除错误的代理设置:
    在您的命令行中,执行以下命令来清除之前设置的无效代理变量:

    set HTTP_PROXY=
    set HTTPS_PROXY=
  2. 正确设置代理(如果需要):
    如果您确实需要通过代理访问网络,请将 your_proxyport 替换为真实的代理服务器地址和端口号。例如,如果您使用本地代理 127.0.0.1 和端口 7890,应这样设置:

    set HTTP_PROXY=http://127.0.0.1:7890
    set HTTPS_PROXY=http://127.0.0.1:7890

    注意: 如果您的代理软件(如 Clash、V2RayN)支持 SOCKS5 协议,也可以尝试设置 socks5://127.0.0.1:7890

  3. 重新尝试安装:
    清除或正确设置代理后,再次运行安装命令:

    pip install -e .

关于 pyVideoTrans 的代理设置:
pyVideoTrans 软件内部使用在线翻译或语音服务时,其代理设置在软件主界面第5行的“网络代理”输入框中配置,格式为 http://127.0.0.1:端口socks5://127.0.0.1:端口,这与您当前在系统命令行中设置的环境变量是两套独立的配置。

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