Linux下Python的安装
Python2.x
- 下载Python2.x的包
- tar –zxvf python-2.7.15.tar
- yum install gcc
- ./configure
- Make && make install
Python3.x
- 依赖环境:yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
- 下载Python3的包
- tar –zxvf python-3.6.1.tgz
- ./configure
- Make && make install
- 添加环境变量