Last active
September 2, 2015 13:14
-
-
Save muayyad-alsadi/923470f1003677fd051f to your computer and use it in GitHub Desktop.
how to setup your development environment for python/django
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
# as root | |
yum install python-pip python-pillow python-lxml python-psutil python-simplejson python-ldap python-crypto python-pwquality PyYAML MySQL-python python-psycopg2 libxslt-python python-greenlet python-gevent python-gevent-socketio python-gevent-websocket | |
pip install --upgrade pip | |
pip install wheel virtualenv | |
################## | |
# as usual user | |
################### | |
# install to common ~/wheels to save downloads | |
mkdir ~/wheels | |
pip wheel -w ~/wheels Django | |
# if you have requirements.txt | |
pip wheel -w ~/wheels -r requirements.txt | |
# create a project directory (aka virtualenv) | |
virtualenv --system-site-packages myproject | |
cd myproject | |
source ./bin/activate | |
# install from the wheels | |
# --no-index below means without internet | |
pip install --no-index --find-links=~/wheels Django | |
pip install --find-links=~/wheels -r requirements.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment