create environment conda code example

Example 1: conda create environment

conda create -n myenv python=3.6

Example 2: conda remove environment

conda remove --name myenv --all

Example 3: conda create environment python 3.6

conda create -n myenv python=x.x

Example 4: anaconda create environment python version

conda create -n myenv python=3.6

Example 5: conda create environment without packages

conda create --name myenv python=3.8 --no-default-packages

Example 6: conda create environment based on requirements.txt

# using pip
pip install -r requirements.txt

# using Conda
conda create --name <env_name> --file requirements.txt

Tags:

Cpp Example