前端之家收集整理的这篇文章主要介绍了
centos 7 安装django 简单脚本,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
- #!/bin/sh
- [!-d"~/temp/"]&&mkdir~/temp/
- cd~/temp/
- echo"###downloadsetuptool"
- wgethttps://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg#md5=fe1f997bc722265116870bc7919059ea--no-check-certificate
- echo"###installsetuptool"
- bashsetuptools-0.6c11-py2.7.egg
- echo"###downloadpip"
- wget"https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb"--no-check-certificate
- echo"###installpip"
- tar-xzvfpip-1.5.4.tar.gz
- cdpip-1.5.4/
- pythonsetup.pyinstall
- echo"###installMysqL-python"
- yum-yinstallMysqL-python
- echo"###installdjango"
- pipinstallDjango