环境准备
CentOS6.5+Python2.6/7+oschina GIT +IPython+RPM源
CentOS6.5环境准备使用默认的Python2.6
其它安装:
RPM源安装:
# rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Python源码安装:
#yum install –y gcc gcc-c++ readline-devel
#wget https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz 在外网中安装,如果没有连接外网,挂载光盘安装,#mount /dev/cdrom /mnt/ ;挂硬盘 #mount -t ntfs-3g /dev/sdc /mnt/ 激活挂载
#tar zxvf Python-2.7.6.tgz
#cd Python-2.7.6
#./configure 配置环境
#make && make install make是编译的意思。就是把源码包编译成二进制可执行文件 make install 安装的意思
IPython安装
#yum install ipython
GIT安装
# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
# wget https://www.kernel.org/pub/software/scm/git/git-1.9.4.tar.gz
# tar xzf git-1.9.4.tar.gz
# cd git-1.9.4
# make prefix=/usr/local/git all
# make prefix=/usr/local/git install
# echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
# source /etc/bashrc
再安装VIM
OSCHINA GIT:http://git.oschina.net/zwhset/jflearnpython