引言
我想在linux系统下安装fastp工具,但是直接在终端安装不可以,最后尝试先安装conda,安装在conda中安装fastp工具
但是在网上搜了很多种安装方法,存在安装速度慢或者安装后输入conda显示:command not found
最后终于总结出一条行之有效的方法。
正文
1.从国内(北外源)下载miniconda并安装,可以解决下载网速过慢的问题
(也可以直接去北外的镜像源里面找到合适的)
wget https://mirrors.bfsu.edu.cn/anaconda/miniconda/Miniconda3-py37_4.8.3-Linux-x86_64.sh
sh Miniconda3-py37_4.8.3-Linux-x86_64.sh
2.添加北外源,以后conda install xxx或者sudo install xxx都会从下面这些源里面找,下载速度也比较快
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/menpo/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/peterjc123/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/r/
conda config --set show_channel_urls yes
以上转载自:linux 安装miniconda3 并添加北外源
3.根据提示完成全部安装
(enter,yes,no啥的都按照提示的来)
4.环境变量的设置
安装成功后发现输入conda仍然没用,这时需要配置环境变量
安装下面方式配置
注:双引号内的,就是conda存放的路径,其他不变
这时再输入conda,发现已经可以使用了