centos7构建python2.7常用开发环境

把下面的代码保存到一个sh文件中执行即可
 1 yum -y install epel-release
 2 yum -y install python-pip
 3 yum -y install mysql-devel
 4 yum -y install python-devel
 5 yum -y install gcc
 6 yum -y install wget
 7 yum -y install zip
 8 yum -y install unzip
 9 
10 pip install --upgrade pip
11 pip install enum
12 pip install cryptography
13 pip install paramiko
14 pip install xlrd
15 pip install xlwt
16 
17 wget https://pypi.python.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip#md5=654f75b302db6ed8dc5a898c625e030c
18 unzip MySQL-python-1.2.5.zip
19 cd MySQL-python-1.2.5
20 python setup.py install

 

 

posted on 2018-01-08 10:03  Netsharp  阅读(152)  评论(0编辑  收藏  举报

导航