conda environment in google colab [google-colaboratory]

前端 未结 4 1703
天命终不由人
天命终不由人 2021-02-05 08:40

I am trying to create a conda environmet in google colab notebook. I succesfully installed conda with the following comannd

!wget -c https://repo.contin

4条回答
  •  春和景丽
    2021-02-05 08:52

    I installed conda package in /usr/local and work fine

    !wget -c https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh
    
    !chmod +x Anaconda3-5.1.0-Linux-x86_64.sh
    
    !bash ./Anaconda3-5.1.0-Linux-x86_64.sh -b -f -p /usr/local
    
    sys.path.append('/usr/local/lib/python3.6/site-packages')
    

    then you can install any package you want

    !conda install -q -y --prefix /usr/local -c pytorch -c tensorcomp tensor_comprehensions
    

提交回复
热议问题