Conda is a popular package and environment management tool widely used in scientific computing and data science, particularly for handling Python projects. Here's a basic guide on how to use Conda.
Conda can be installed as part of the Anaconda or Miniconda distributions:
- Anaconda: Includes Conda, Python, and a large collection of pre-installed packages suited for scientific applications.
- Miniconda: Includes only Conda and Python, allowing for a lighter installation with the flexibility to install only the packages you need.
- Download the installer:
- For Anaconda, visit Anaconda Downloads
- For Miniconda, visit Miniconda Downloads
- Run the installer:
- On Windows, double-click the downloaded
.exe
file. - On macOS and Linux, open a terminal and run the downloaded
.sh
file by typingbash <filename>.sh
.
- On Windows, double-click the downloaded
- Follow the on-screen instructions to complete the installation.
Conda allows you to create isolated environments to manage different project dependencies separately.
conda create --name myenv python=3.8
Creating from yaml file:
conda env create -f environment.yml
conda env remove --name gpt
conda activate myenv
conda deactivate
Conda can install, update, and remove packages within an environment.
conda install numpy
conda list
conda update numpy
conda remove numpy
Using Conda effectively can simplify package management and help maintain reproducibility of scientific computations. Explore the official documentation for more in-depth information.