1.本机创建tts环境。用conda.
0.1安装。我都用的默认,你也可以。我安装过一次,如果修复,后面加 -u
bash Anaconda3-2024.10-1-Linux-x86_64.sh
等待一会。
(base) kt@kt4028:~/Downloads$ conda -V
conda 24.9.2
学习资源
Conda 常用命令大全(非常详细)零基础入门到精通,收藏这一篇就够了_conda命令-CSDN博客
1.1设置镜像源,防止 出错。
anaconda | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
1.1.1查看当前源:
kt@kt4028:~/anaconda3$ conda config --show channels
channels:- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/- https://repo.anaconda.com/pkgs/main- https://repo.anaconda.com/pkgs/r
kt@kt4028:~/anaconda3$
1.1.2删除所有自定义源
kt@kt4028:~/anaconda3$ conda config --remove-key channels
kt@kt4028:~/anaconda3$ conda config --show channels
channels:- https://repo.anaconda.com/pkgs/main- https://repo.anaconda.com/pkgs/r
kt@kt4028:~/anaconda3$
1.1.3添加镜像
#添加镜像源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
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/r
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2#终端显示包从哪个channel下载,以及下载地址是什么
conda config --set show_channel_urls yes
kt@kt4028:~$ conda config --show channels
channels:- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main- defaults- https://repo.anaconda.com/pkgs/main- https://repo.anaconda.com/pkgs/r
kt@kt4028:~$
或通过手动方式
(base) kt@kt4028:~/Downloads$ cat ~/.condarc
channels:- defaults
show_channel_urls: true
default_channels:- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudpytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
(base) kt@kt4028:~/Downloads$
1.1.4 创建环境
(base) kt@kt