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:

  • Google Gemini updates: Flash 1.5, Gemma 2 and Project Astra
  • Displaying External Posts on Your al-folio Blog
  • Can Machine Learning Help Predict Heart Disease? A Data Science Exploration
  • Predicting House Prices; MLR vs RFR
  • Predicting House Prices; SVC vs Random Forest