share an environment with others by environment.yml file.
Use the terminal or an Anaconda Prompt for the following steps:
Create the environment from the environment.yml file
condaenvcreate-fenvironment.yml
The first line of the yml file sets the new environment's name.
Activate the new environment: conda activate myenv
Note:Replace myenv with the environment name.
Verify that the new environment was installed correctly:
conda list
Managing environments — conda 4.7.11.post17+1eb46d8e documentation