Anaconda Environment Export And Import
Anaconda environment export and import¶
Choose an export environment you want.
I choose the Work37WindowsService and open Terminal.
Using "conda env export" command, you can get a list of all packages.
Using "conda env export > Work37WindowsService.yml (your file name)", you will get a list file of all packages.
There are two ways that you can import these package in your new environment.
Click the import button.
Input your new name of environment and choose your environment file (.yml).
Success!
Another way. Using "conda env create -f Work37WindowsService.yml", Work37WindowsService.yml is import file. You have to change them.
Success!
Management Environment Instructions¶
Create environment: conda create -n environment_name python=3 (version, such as 2.7, 3.6, 3.7, 3.8, etc)
Start environment: conda activate environment_name
Exit environment: deactivate
List environment: conda env list
Import/Export environment:
conda env export > environment.yaml
conda env create -f environment.yaml
Remove environment: conda env remove -n environment_name
Comments
Post a Comment