conda environment in google colab [google-colaboratory]

前端 未结 4 1689
天命终不由人
天命终不由人 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 09:12

    a quick fix

    put !source activate myenv && before all your bash commands

    !source activate myenv && 
    

    For example

    !source activate myenv && conda env list
    

    base /usr/local

    myenv * /usr/local/envs/myenv

    justification:

    Well we have to put ! in front of your bash commands anyway... But I would love to know a better way.

提交回复
热议问题