0. 环境
ubuntu server 22.04
cuda version 12.4
python version 3.9
1. 安装python依赖
git clone https://github.com/myshell-ai/MeloTTS.git
cd MeloTTS
注意不是执行 pip install melotts
如果国内服务器无法从github中下载源码,那么可以把github改为gitcode
先安装
botocore>=1.34.98
cached_path>=1.6.2
boto3>=1.35.81
然后安装
pip3 install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 -f https://mirrors.aliyun.com/pytorch-wheels/cu118
最后执行
pip install -e .
python -m unidic download
在执行 python -m unidic download
时,会报下面的错误,可以看我的往期文章,点击这里可以跳转
如果报下面的错误,是由于安装的botocore
和boto3
版本过低导致的,需要重新安装
pip uninstall botocore boto3 -y
pip install botocore==1.34.98 boto3==1.35.81
现在就可以正常启动了。