yum install gcc

yum install make

yum install openssl-devel -y

yum install sqlite-devel -y

wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tar.xz

tar xvf Python-3.5.2.tar.xz

cd Python-3.5.2

./configure

make 

make install

pip3 install django