下载安装
conda install -p <安装路径> -c <channel> <software>
# channel 可以是bioconda,还可以是国内的镜像,如
conda install -c bioconda bwa
更新conda
conda update -n base -c defaults conda
错误解决
- 错误1
$ conda activate bwa
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Currently supported shells are:
- bash
- fish
- tcsh
- xonsh
- zsh
- powershell
See 'conda init --help' for more information and options.
IMPORTANT: You may need to close and restart your shell after running 'conda init'.
当如此报错时,可能是上次ssh连接该服务器使用conda activate
命令激活环境后未使用conda deactivate
退出环境就关闭终端导致。因此,可以重新激活环境,退出,解决,如下:
# 重新进入虚拟环境
$ source activate
# 退出虚拟环境
$ conda deactivate
# 进入虚拟环境
$ conda activate bwa
网友评论