Member-only story

Anaconda in Python

Elshad Karimov
2 min readMar 25, 2024
Photo by Clément Hélardot on Unsplash

Anaconda is a popular open-source distribution of Python (and R) specifically aimed at scientific computing, data science, and machine learning. It simplifies package management and deployment by bundling together numerous data science packages and their dependencies so that users don’t have to manage installations individually.

Anaconda comes with Conda, a package and environment manager, which helps handle different project environments and package versions without conflicts. This is particularly useful when you’re working on multiple projects that require different versions of the same packages.

Example 1: Creating and Managing Environments with Anaconda

Here’s how you can use Anaconda to create a new isolated environment for a project:

  1. Creating a New Environment:

Open your terminal and create a new environment named myenv that specifically uses Python 3.8:

conda create --name myenv python=3.8

This command creates an environment called myenv with Python 3.8 installed in it.

2. Activating the Environment:

To use or install packages in myenv, you need to activate it:

conda activate myenv

--

--

Elshad Karimov
Elshad Karimov

Written by Elshad Karimov

Software Engineer, Udemy Instructor and Book Author, Founder at AppMillers

No responses yet