Conda virtual environments; handy commands

The following are the handy commands I found for managing conda virtual environments.

Creating a new environment

  • conda create -n <environment name>


Renaming a virtual environment

This is not directly possible but a workaround involves 2 steps:

  • Create a new virtual environment by cloning the virtual environment
    • conda create -n <new name> --clone <old name>
  • Remove the now obsolete environment
    • conda remove -n <old name> --all



Sources:




Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • 6 months a data engineer…
  • Failing forward; Lessons from Airflow error alerts.
  • Learning while working.
  • Can Machine Learning Help Predict Heart Disease? A Data Science Exploration
  • Predicting House Prices; MLR vs RFR