Skip to content

Instantly share code, notes, and snippets.

@yanniskatsaros
Created April 22, 2020 17:16
Show Gist options
  • Save yanniskatsaros/e6ea3132a1313689d1203122f9fe569c to your computer and use it in GitHub Desktop.
Save yanniskatsaros/e6ea3132a1313689d1203122f9fe569c to your computer and use it in GitHub Desktop.
A simple and cross-platform effective way to create a conda env with appropriate dependencies
# for more info see:
# https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#create-env-file-manually
name: core-env
channels:
- conda-forge
dependencies:
- python=3.7
- matplotlib
- jupyterlab
- xlrd
- pandas
- openpyxl
- seaborn
- numpy
- requests
- scipy
- pyodbc
- pylint
- jupytext
- plotly
- python-dotenv
- scikit-learn
- statsmodels
# create a new env named "core-env" as specified in the file
conda env create -f environment.yml
# or override the name and provide your own
conda env create -n test-env -f environment.yml
# for more info see:
# https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-from-an-environment-yml-file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment