centos6下python开发环境搭建

1, 安装python2.7:http://digwtx.duapp.com/54.html:注意软连接的指向:ln -sf /usr/local/bin/python2.7 /usr/bin/python,并修改/usr/bin/yum第一行中的python为python2.6

2, 安装mariadb:http://www.cnblogs.com/doublehappyi/p/5895306.html

3, 安装nginx: https://www.nginx.com/resources/wiki/start/topics/tutorials/install/

4, 安装pip:https://pip.pypa.io/en/stable/installing/

5, 编译安装git2.x: https://mozillazg.com/2015/08/install-git-2-on-centos-6.html

6, 搭建virtualenv环境: 注意使用./bin/python和./bin/pip来安装虚拟环境包

7, 安装各个模块包注意事项

asynctorndb: https://github.com/mayflaver/AsyncTorndb,注意要到AsyncTorndb目录下去安装,才能正确安装

MySQLdb: 需要先安装yum install mysql-devel,才能使用pip install MySQL-python

 

posted @ 2016-09-22 13:39  doublehappyi  阅读(510)  评论(0编辑  收藏  举报