簡體   English   中英

如何在 Ubuntu WSL 上安裝和運行 Tacotron2?

[英]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 的安裝說明似乎令人困惑。

所以這就是我所在的位置:

  1. 安裝Docker,確認啟動並運行,一切正常。
  2. 通過 git 命令行下載Tacotron2 - 成功。
  3. 執行了這個命令: 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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM