安装conda:
- 先确保删除anaconda3和.conda,删除.bashrc中的conda环境变量
ls -a 查看隐藏文件 - 下载anaconda3
wget https://repo.anaconda.com/archive/Anaconda3-2020.07-Linux-x86_64.sh - 安装
bash Anaconda3-2020.07-Linux-x86_64.sh(Enter + yes)等待安装完成 - 修改因迁移引发的路径错误(正常安装anaconda跳过这步)
vim ~/.bashrc,改成相应路径
export PATH="ceph/home/zhouyx20/anaconda3/bin:$PATH"
source ~/.bashrc
重启终端,conda init,终端界面出现(base)即表明conda成功
配置清华源 (主要有用的main和free)
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/fastai/
conda config --append channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --append channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
- 配置Tacotron tensorflow(Rayhane-Tacotron2)环境
conda create -n taco python=3.6.5
conda activate taco
#安装包
conda install tensorflow-gpu==1.14
pip install falcon==1.2.0
pip install inflect==0.2.5
pip install audioread==2.1.5
pip install librosa==0.5.1
pip install matplotlib==2.0.2
pip install tqdm==4.11.2
pip install Unidecode==0.4.20
pip install keras==2.1.3
#未装:pyaudio==0.2.11 ,sounddevice==0.3.10 , lws
(个人备注:语法树TTS设置)
pip install transformers
pip install pytorch-pretrained-bert
记得修改pytorch-pretrained-bert代码中的一段处理OOV字符