如何在Google Colab中安装Anaconda

时间:2020-06-16 20:33:14

标签: ubuntu anaconda conda google-colaboratory miniconda

Anaconda尚未预装在Google Colab上,但我想使用它来安装和管理软件包。如何安装?

1 个答案:

答案 0 :(得分:1)

在代码单元中运行以下命令:

# Install conda and add channels to look for packages in
import sys
! wget https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh
! chmod +x Anaconda3-2020.02-Linux-x86_64.sh
! bash ./Anaconda3-2020.02-Linux-x86_64.sh -b -f -p /usr/local
sys.path.append('/usr/local/lib/python3.7/site-packages/')
! conda update -n base -c defaults conda -y
! conda config --add channels bioconda
! conda config --add channels conda-forge