wynemo
2/23/2017 - 12:56 PM

django learning

django learning

cd somedir

wget -c https://pypi.python.org/packages/d4/0c/9840c08189e030873387a73b90ada981885010dd9aea134d6de30cd24cb8/virtualenv-15.1.0.tar.gz
wget -c https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tar.xz
cd Python-2.7.13
mkdir $PWD/../python2.7
./configure --prefix=$PWD/../python2.7

#sudo aptitude install libbz2-dev
#libreadline6-dev

#sudo yum install readline-devel
#sudo yum install bzip2-devel

make
make install
cd ..
python2.7/bin/python virtualenv-15.1.0/virtualenv.py --never-download env
env/bin/pip instal django
#sudo yum install mariadb-devel
djangoenv/bin/pip install mysqlclient