Create env with python 3.7 and pip
conda create --name whatwhale python=3.7 pipActivate by name
conda activate whatwhaleconda deactivateRemove environment by name
# remove env
conda env remove --name whatwhale
# verify
conda env listList packages in active environment
conda listList packages in environment using name
conda list --name whatwhaleInstall flask in active environment
conda install flaskInstall flask in environment using name
conda install --name whatwhale flaskIt is recommended to only install packages with pip if conda install does not work.
Install pip into active environment
conda install pip
pip install <package-name>Produce a spec list file
conda list --explicit > requirements.txtCreate an environment.yml file
conda env export --from-history > environment.ymlBuild a new environment from spec list file
conda create --name myenv -f requirements.txtRecreate from environment.yml file
conda env create -f environment.ymlUpdate an existng environment from spec list file
conda install --name myenv --file requirements.txtUpdate an existng environment from environment.yml file
conda env update --name myenv --file environment.yml --prune