xxxxxxxxxx
# conda export environment.yml
conda env export > environment.yml
# conda create environment from file (Same environment name)
conda env create -f environment.yml
xxxxxxxxxx
# Create and export environment in yaml format.
conda env export > environment.yaml
xxxxxxxxxx
conda create -n <my_env> python=3.8
#Remember to install "ipykernel" so you can use jupyter notebook.
conda install ipykernel
xxxxxxxxxx
# Exporting the conda environment to a YAML file named environment.yml
conda env export > environment.yml
# Creating a new conda environment using the YAML file
# named environment.yml
conda env create --prefix ./env -f environment.yml