Installing conda/miniconda and creating virtual environments on Google Colab is a common need, but it can be quite a hassle. Konda solves this problem by helping you do everything with a single command. Essentially, Konda makes conda installation and usage in Colab straightforward and painless.
There’s no learning curve since Konda commands are simply wrappers around conda commands you already know.
- 🔄 One-command Miniconda Installation: Installs Miniconda with just one line of code
- 🌐 Built for Google Colab: Optimized for the Colab environment where conda integration is typically tricky
- 🛠️ Simple Command Wrapper: Run conda commands without worrying about environment setup
- 🚀 Seamless Environment Activation: Automatically handles the special activation requirements in Colab
- 🧹 Easy Cleanup: Remove the Miniconda installation when you’re done
import konda konda.install()
Konda is a simple wrapper around conda.
# Create a new environment konda create -n my_env python=3.8 -y # Activate the environment konda activate my_env # Run a command in the environment konda run "conda install anaconda::tensorflow-gpu=2.4.1 -y" konda run "pip install requests" # Deactivate the environment konda deactivate
To see how konda works in action, check out the example.
To remove the Miniconda installation created by konda:
To uninstall the konda package itself:
Konda simplifies conda management in Googl