Conda is an open-source package and environment management system that runs on Windows, macOS, and Linux. Conda quickly installs, runs, and updates packages and their dependencies. It also easily creates, saves, loads, and switches between environments on your local computer. It was created for Python programs, but it can package and distribute software for any language.
Anaconda Instructions
Configure your environment with ‘conda’
Create a new environment
- Create an environment without additional packages.
conda create -n <env_name>
- An environment with additional packages.
conda create -n <env_name> <package_1> <package_2>
Activate/Deactivate the new environment
- Activate
conda activate <env_name>
- Install many packages with a single line
conda install <package_1> <package_2> <package_3> ...
- Deactivate
conda deactivate
View information
- Show environments information
conda env list
- Show a list of packages in the environment
conda list
Rename a environment
- Clone the old environment
conda create -n <new_env> --clone <old_env>
- Remove the old environment
conda remove -n <old_name> --all
Share environment
- Export existent environment
conda env export > <default.yml>
- Recreate a new environment
conda env create -f <default.yml> -n <env_name>