Skip to content

Instantly share code, notes, and snippets.

@gamesbrainiac
Created February 5, 2014 15:49
Show Gist options
  • Save gamesbrainiac/8826567 to your computer and use it in GitHub Desktop.
Save gamesbrainiac/8826567 to your computer and use it in GitHub Desktop.
Automatically generates the requirements of your interpreter through a pip freeze.
# encoding=utf-8
__author__ = 'Quazi Nafiul Islam'
import sys
import pip
if __name__ == '__main__':
sys.stdout = open('requirements.txt', 'w')
pip.main(['freeze'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment