在Linux CentOS 6.6上安装Python 2.7.9
来源:互联网 发布:仿手写软件app 编辑:程序博客网 时间:2024/06/05 17:41
原文地址:http://www.cnblogs.com/dudu/p/4294238.html
操作步骤如下:
1)安装devtoolset
yum groupinstall "Development tools"
2)安装编译Python需要的包包
yum install zlib-develyum install bzip2-develyum install openssl-develyum install ncurses-develyum install sqlite-devel
cd /optwget --no-check-certificate https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tar.xztar xf Python-2.7.9.tar.xzcd Python-2.7.9
4)编译与安装Python 2.7.9
./configure --prefix=/usr/localmake && make altinstall
5)将python命令指向Python 2.7.9
ln -s /usr/local/bin/python2.7 /usr/local/bin/python
6)检查Python版本
shsh-4.1# python -V
#会出现一大串内容,看见是2.7.9就可以了,直接输入python进入解释器也可以看见Python 2.7.9
1 0
- 在Linux CentOS 6.6上安装Python 2.7.9
- 在Linux CentOS 6.6上安装Python 2.7.9
- 在Linux CentOS 6.6上安装Python 2.7.9
- 在Linux CentOS 6.6上安装Python 2.7.9
- 在Linux CentOS 6.6上安装Python 2.7.9
- 在Linux CentOS 6.6上安装Python 2.7.9
- 在Linux CentOS 6.6上安装Python 2.7.9
- 在Linux CentOS 上安装Python 2.7.9
- 在Linux CentOS 6.x上安装Python 2.7.9
- 在Linux CentOS 6.8上安装Python 2.7.12
- 在CentOS上安装Python
- 在CentOS 6.6 64bit上安装Python 3.5.0
- 如何在CentOS 6上安装Python 2.7 + Ansible
- [Python]lxml在centos上安装失败
- [转]在CentOS上安装Python
- 【Linux】-在Linux Centos上安装Couchbase
- Python在Linux上安装
- 在linux上安装python
- ocp-51
- ocp-52
- 《深入理解Linux网络技术内幕》阅读笔记(十一)
- ocp-53
- 删除没有任何员工的部门信息
- 在Linux CentOS 6.6上安装Python 2.7.9
- ocp-54
- 练习
- 几个java的图片方法
- ocp-55
- python requests库官方手册
- ocp-56
- ocp-57
- Linux下paste命令详解