Create Conda Environment 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: list conda environments


conda info --envs

conda env list

Example 4: conda create environment without packages


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

Example 5: conda create env from yml


conda env create -f environment.yml

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

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable