Skip to content

Instantly share code, notes, and snippets.

@anapaulagomes
Created October 27, 2019 17:36
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 anapaulagomes/f24b07331e1ac95fbe1e8a906c9de15d to your computer and use it in GitHub Desktop.
Save anapaulagomes/f24b07331e1ac95fbe1e8a906c9de15d to your computer and use it in GitHub Desktop.
Python tricks
# install dependencies from .cfg file (from https://stackoverflow.com/a/46573039/1344295)
python -c "import configparser; c = configparser.ConfigParser(); c.read('setup.cfg'); print(c['options']['install_requires'])" | xargs pip install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment