Last active
February 20, 2018 18:56
-
-
Save pedro2555/0d5f61c5d2969420d13763bf10dc7623 to your computer and use it in GitHub Desktop.
Python dev cheatsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`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
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 alreadysource bin/activate
initiate the virtualenvpip install -r requirements.txt
orpip install -r dev-requirements.txt
install python modulessudo /etc/init.d/mongo start
start the mongo instance (only required on Linux Subsystem for Windows)source deactivate
exit the virtualenv