Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@michaelaye
Last active October 28, 2018 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelaye/ccbe9f254cf946bff3755299b7cbaf60 to your computer and use it in GitHub Desktop.
Save michaelaye/ccbe9f254cf946bff3755299b7cbaf60 to your computer and use it in GitHub Desktop.
Conda commands to create new environment
#!/bin/bash
# add --yes below if you trust the command to prevent the y/n interaction
conda create -n py36 python=3.6 --file list_of_conda_packages.txt -c conda-forge
conda activate py36
conda config --env --add channels conda-forge
conda config --env --add pinned_packages conda-forge::numpy
conda config --env --add pinned_packages conda-forge::gdal
conda config --env --add pinned_packages notebook=5.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment