[英]How to install and run Tacotron2 on Ubuntu WSL?
我在 WSL Windows 10 Pro 2004 (19041.388) 上運行 Ubuntu 20.04,我非常想運行Tacotron2並試用該功能。 我已經通過命令行從 git 安裝了 Tacotron2,但我不確定它是否構建成功。 我是 Linux 和 Docker 的初學者,上面鏈接的 Tacotron2 的安裝說明似乎令人困惑。
所以這就是我所在的位置:
sudo docker build -t tacotron-2_image -f docker/Dockerfile docker/
- 發生了很多看似成功的事情,但最后卻出現了錯誤: Package libav-tools is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it:
ffmpeg
E: Package 'libav-tools' has no installation candidate The command '/bin/bash -c apt-get install -y libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 ffmpeg libav-tools wget git vim'
returned a non-zero code: 100
在這一點上,我被困住了。 確實,我希望擺脫這個錯誤,但總的來說,我正在尋找能夠運行 Tacotron2 並最終能夠用某人的聲音為其提供 mp3 文件的確切步驟,然后能夠提供它一些文本,然后它將以那種聲音“說話”。
這就是我對 Tacotron2 的理解,但我很想知道我是否走錯了路。
您的問題看起來與https://github.com/Rayhane-mamah/Tacotron-2/issues/475非常相似
出現此問題是因為您的libav-tools
安裝指令,該指令不再具有安裝候選者。
要消除錯誤,您需要在任何文本編輯器中打開docker/Dockerfile
並從包含的行中刪除libav-tools
apt-get install -y libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 ffmpeg libav-tools wget git vim
有類似的東西
apt-get install -y libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 ffmpeg wget git vim
由於 package ffmpeg
已經在此列表中,因此您無需再次添加。
You can also remove libav-tools
from the Dockerfile using sed command in the WSL shell (might need to add sudo
before sed if you have error with permissions):
sed -i docker/Dockerfile -e 's/libav-tools\ //g'
然后你的構建命令應該通過。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.