jianchang512 / ChatTTS-ui

一个简单的本地网页界面,使用ChatTTS将文字合成为语音,同时支持对外提供API接口。A simple native web interface that uses ChatTTS to synthesize text into speech, along with support for external API interfaces.
https://pyvideotrans.com
Other
5.91k stars 679 forks source link

Linux 下容器部署 一键部署,会报错 #218

Open baiw23 opened 1 month ago

baiw23 commented 1 month ago

[root@xiyatu1 ~]# cd chat-tts-ui [root@xiyatu1 chat-tts-ui]# docker compose -f docker-compose.cpu.yaml up -d WARN[0000] The "UID" variable is not set. Defaulting to a blank string. WARN[0000] The "GID" variable is not set. Defaulting to a blank string. [+] Building 43.3s (10/10) FINISHED docker:default => [chat-tts-ui internal] load build definition from Dockerfile.cpu 0.0s => => transferring dockerfile: 266B 0.0s => [chat-tts-ui internal] load metadata for docker.io/pytorch/torchserve 0.7s => [chat-tts-ui auth] pytorch/torchserve:pull token for registry-1.docke 0.0s => [chat-tts-ui internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => CACHED [chat-tts-ui 1/5] FROM docker.io/pytorch/torchserve:0.11.0-cpu 0.0s => [chat-tts-ui internal] load build context 0.1s => => transferring context: 2.06MB 0.0s => [chat-tts-ui 2/5] RUN apt-get update && apt-get install -y ffmpeg 22.8s => [chat-tts-ui 3/5] WORKDIR /app 0.0s => [chat-tts-ui 4/5] COPY . ./ 0.1s => ERROR [chat-tts-ui 5/5] RUN pip install -r requirements.txt -i https 19.6s


[chat-tts-ui 5/5] RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple: 0.871 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple 2.231 Collecting Flask (from -r requirements.txt (line 1)) 2.479 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/61/80/ffe1da13ad9300f87c93af113edd0638c75138c42a0994becfacac078c06/flask-3.0.3-py3-none-any.whl (101 kB) 2.960 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.7/101.7 kB 192.4 kB/s eta 0:00:00 3.517 Collecting ipython (from -r requirements.txt (line 2)) 3.723 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/47/6b/d9fdcdef2eb6a23f391251fde8781c38d42acd82abe84d054cb74f7863b0/ipython-8.18.1-py3-none-any.whl (808 kB) 4.280 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 808.2/808.2 kB 1.4 MB/s eta 0:00:00 4.545 Collecting modelscope (from -r requirements.txt (line 3)) 4.746 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/56/a3/eef1f3d86c7da7117a1b5fab5e652979f5987713ccb9e6482a9c9f6906c9/modelscope-1.17.0-py3-none-any.whl (5.7 MB) 5.963 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 4.7 MB/s eta 0:00:00 6.769 Collecting numpy==1.26.4 (from -r requirements.txt (line 4)) 6.970 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/54/30/c2a907b9443cf42b90c17ad10c1e8fa801975f01cb9764f3f8eb8aea638b/numpy-1.26.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB) 8.914 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.2/18.2 MB 7.8 MB/s eta 0:00:00 9.482 Collecting numba (from -r requirements.txt (line 5)) 9.684 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/54/9b/cd73d3f6617ddc8398a63ef97d8dc9139a9879b9ca8a7ca4b8789056ea46/numba-0.60.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (3.7 MB) 10.14 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.7/3.7 MB 8.2 MB/s eta 0:00:00 10.40 Collecting einops (from -r requirements.txt (line 6)) 10.60 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/44/5a/f0b9ad6c0a9017e62d4735daaeb11ba3b6c009d69a26141b258cd37b5588/einops-0.8.0-py3-none-any.whl (43 kB) 10.63 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.2/43.2 kB 1.3 MB/s eta 0:00:00 10.64 Requirement already satisfied: tqdm in /home/venv/lib/python3.9/site-packages (from -r requirements.txt (line 7)) (4.66.4) 11.33 Collecting omegaconf>=2.3.0 (from -r requirements.txt (line 8)) 11.54 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e3/94/1843518e420fa3ed6919835845df698c7e27e183cb997394e4a670973a65/omegaconf-2.3.0-py3-none-any.whl (79 kB) 11.55 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 79.5/79.5 kB 8.2 MB/s eta 0:00:00 11.56 Requirement already satisfied: torch>=2.1.0 in /home/venv/lib/python3.9/site-packages (from -r requirements.txt (line 9)) (2.3.0+cpu) 11.79 Collecting python-dotenv (from -r requirements.txt (line 10)) 11.99 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/6a/3e/b68c118422ec867fa7ab88444e1274aa40681c606d59ac27de5a5588f082/python_dotenv-1.0.1-py3-none-any.whl (19 kB) 12.02 Requirement already satisfied: requests in /home/venv/lib/python3.9/site-packages (from -r requirements.txt (line 11)) (2.31.0) 12.46 Collecting soundfile (from -r requirements.txt (line 12)) 12.86 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c1/07/7591f4efd29e65071c3a61b53725036ea8f73366a4920a481ebddaf8d0ca/soundfile-0.12.1-py2.py3-none-manylinux_2_31_x86_64.whl (1.2 MB) 13.49 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 1.9 MB/s eta 0:00:00 14.91 Collecting tokenizers (from -r requirements.txt (line 13)) 15.31 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/0f/cb/8fc733c8f251bac1e5c4ae52458c353b3faa98f41d734c226cad3783da03/tokenizers-0.19.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB) 16.65 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.6/3.6 MB 2.7 MB/s eta 0:00:00 17.08 Collecting transformers>=4.41.1 (from -r requirements.txt (line 14)) 17.28 ERROR: HTTP error 404 while getting https://pypi.tuna.tsinghua.edu.cn/packages/62/c0/810e741a6244c0f004be40ccb96486d072f042eabbd4d7e8aa02b81ca1eb/transformers-4.44.0-py3-none-any.whl (from https://pypi.tuna.tsinghua.edu.cn/simple/transformers/) (requires-python:>=3.8.0) 17.28 ERROR: Could not install requirement transformers>=4.41.1 from https://pypi.tuna.tsinghua.edu.cn/packages/62/c0/810e741a6244c0f004be40ccb96486d072f042eabbd4d7e8aa02b81ca1eb/transformers-4.44.0-py3-none-any.whl (from -r requirements.txt (line 14)) because of HTTP error 404 Client Error: Not Found for url: https://pypi.tuna.tsinghua.edu.cn/packages/62/c0/810e741a6244c0f004be40ccb96486d072f042eabbd4d7e8aa02b81ca1eb/transformers-4.44.0-py3-none-any.whl for URL https://pypi.tuna.tsinghua.edu.cn/packages/62/c0/810e741a6244c0f004be40ccb96486d072f042eabbd4d7e8aa02b81ca1eb/transformers-4.44.0-py3-none-any.whl (from https://pypi.tuna.tsinghua.edu.cn/simple/transformers/) (requires-python:>=3.8.0) 19.30 19.30 [notice] A new release of pip is available: 24.0 -> 24.2 19.30 [notice] To update, run: pip install --upgrade pip

failed to solve: process "/bin/sh -c pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple" did not complete successfully: exit code: 1 [root@xiyatu1 chat-tts-ui]#

jianchang512 commented 1 month ago

打开 Dockerfile.cpu 删掉 -i https://pypi.tuna.tsinghua.edu.cn/simple