conda

作者: 嗒嘀嗒嗒嘀嗒嘀嘀 | 来源:发表于2020-03-29 22:32 被阅读0次

下载安装

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

相关文章

网友评论

      本文标题:conda

      本文链接:https://www.haomeiwen.com/subject/pgzfehtx.html