conda create --prefix ./env pandas numpy matplotlib scikit-learn jupyter
- Step 1: Go to Base Env folder and export the base conda env to
environment.yml
file- Note: open
environment.yml
file byvim environment.yml
to open the file → To exit Vim:press ESC then ; then q to exit
- Note: open
conda env list #to list down current env
conda activate /Users/quannguyen/Data_Science/Conda/env #Activate the base conda env
conda env export > environment.yml #Export base conda env to environment.yml file
conda deactivate #de-activate env once done
- Step 2: Go to current project folder and create the env based on
environment.yml
file
conda env create --prefix ./env -f environment.yml