Skip to content

Instantly share code, notes, and snippets.

@pedro2555
Last active February 20, 2018 18:56
Show Gist options
  • Save pedro2555/0d5f61c5d2969420d13763bf10dc7623 to your computer and use it in GitHub Desktop.
Save pedro2555/0d5f61c5d2969420d13763bf10dc7623 to your computer and use it in GitHub Desktop.
Python dev cheatsheet
`virtualenv --python=/usr/bin/python3 .` create virtualenv on the project folder, if not done already
`source bin/activate` initiate the virtualenv
`pip install -r requirements.txt` or `pip install -r dev-requirements.txt` install python modules
`sudo /etc/init.d/mongo start` start the mongo instance (only required on Linux Subsystem for Windows)
`source deactivate` exit the virtualenv
@pedro2555
Copy link
Author

This was intended for a markdown parser which never existed here, shame on me. Here it is more readable:

virtualenv --python=/usr/bin/python3 . create virtualenv on the project folder, if not done already
source bin/activate initiate the virtualenv
pip install -r requirements.txt or pip install -r dev-requirements.txt install python modules
sudo /etc/init.d/mongo start start the mongo instance (only required on Linux Subsystem for Windows)
source deactivate exit the virtualenv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment