Elena' s AI Blog

Anaconda Environments

05 Apr 2022 (updated: 17 Aug 2026) / 6 minutes to read

Elena Daehnhardt


Flux: Several separate glass terrariums each containing a different self-contained ecosystem of tools and version labels, r...


TL;DR:
  • Use Conda to manage Python environments: 'conda create -n env_name', 'conda activate env_name', 'conda install package'. Isolate project dependencies—switch environments per project.

Previous: Part 6 — Python Flask TODO App

Next: Part 8 — Brewing with Homebrew

What Is Conda? Python Environment and Package Management

Conda is a command-line package and environment manager that creates, isolates, and switches between Python setups with different package and interpreter versions. Managing different projects and their requirements is challenging when Python coding involves many varying package versions and intricate setups. Conda solves this by letting you work with isolated environments from the command line. Do not confuse Conda with Anaconda, which is a scientific-computing distribution that bundles a set of packages including NumPy, SciPy, Jupyter notebooks, and Conda itself.

With the Conda package manager, you can create, list, remove, and update environments with different versions of Python and packages installed. This introductory post describes the process of creating and using Conda environments — a practical starting point if you have not used Conda yet. For complete reference material, read the [official Conda documentation][1]. Below is a concise review of the most useful Conda commands to start with.

Installing Conda on macOS, Windows, and Linux

Conda installs on Windows, macOS, and Linux platforms by following the [official installation instructions][2]. This post uses conda 4.11.0 on macOS. Beware that some commands differ if you use Conda versions below 4.6.

conda --version

Conda was installed with the Miniforge3-MacOSX-arm64 distribution downloaded from Miniforge Releases and run via the bash script:

/bin/bash Miniforge3-MacOSX-arm64.sh

Managing Conda Environments from the Command Line

🔒 Subscribe to keep reading.

Conda Environment Management: Summary

🔒 Subscribe to keep reading.

References

🔒 Subscribe to keep reading.

Subscribe to unlock the full article ❤️

The form below signs you up for the newsletter. It does not log you into the app — log in afterwards (same email) to unlock this article and download your subscriber gifts. New subscribers get an inbox mail: Set a password to unlock articles.

desktop bg dark

About Elena

Elena, a PhD in Computer Science, simplifies AI concepts and helps you use machine learning.

Citation
Elena Daehnhardt. (2022) 'Anaconda Environments', daehnhardt.com, 05 April 2022. Available at: https://daehnhardt.com/blog/2022/04/05/conda-environments/
All Posts