Reputation: 103
Is it possible to run conda environments in google colab? I successfully installed conda and created an environment. But I get an error when trying to run the environment.
Upvotes: 2
Views: 9177
Reputation: 1753
To run conda environments within google colab, you can use a %%bash magic line. Then you would have to run python again and execute your python commands. See below for example.
Example:
# activate your conda environment
%%bash
source activate myenv
python
# python commands are ready to run within your environment
import sys
print("Python version")
print (sys.version)
Upvotes: 5