-
Notifications
You must be signed in to change notification settings - Fork 1
Create Virtual or conda environment from file.txt
Ash Babu edited this page Jul 26, 2022
·
1 revision
sudo apt install virtualenv-
virtualenv venvto create new virtual environment called 'venv' source venv/bin/activatepip install -r requirements.txt
- Detailed instructions available here
The highlights are
conda list --explicitconda list --explicit > spec-file.txt
To use the spec file to create an identical environment on the same machine or another machine:
conda create --name myenv --file spec-file.txt
To use the spec file to install its listed packages into an existing environment:
conda install --name myenv --file spec-file.txt
My conda environment is available here