在Linux CentOS 6.x上安装Python 2.7.9
来源:互联网 发布:美利达淘宝旗舰店 编辑:程序博客网 时间:2024/06/05 06:02
转自http://www.cnblogs.com/dudu/p/4294238.html
CentOS 6.6自带的是Python 2.6.6,而编译llvm需要Python 2.7以上。
checking for python... /usr/bin/pythonchecking for python >= 2.7... not foundconfigure: error: found python 2.6.6 (/usr/bin/python); required >= 2.7
yum中最新的也是Python 2.6.6,只能下载Python 2.7.9的源代码自己编译安装。
操作步骤如下:
1)安装devtoolset
yum groupinstall "Development tools"
2)安装编译Python需要的包包
yum install zlib-develyum install bzip2-develyum install openssl-develyum install ncurses-develyum install sqlite-devel
3)下载并解压Python 2.7.9的源代码
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 -VPython 2.7.9
【参考资料】
Installing python 2.7 on centos 6.3
阅读全文
0 0
- 在Linux CentOS 6.x上安装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.6上安装Python 2.7.9
- 在Linux CentOS 6.6上安装Python 2.7.9
- 在CentOS 6.X 上面安装 Python 2.7.X
- 在CentOS 6.X 上面安装 Python 2.7.X
- CentOS 6.4 上安装 Python 2.7.x
- 在Linux CentOS 6.8上安装Python 2.7.12
- 在CentOS 6.x 上安装 vnc
- 在CentOS 6.X 上面安装 Python 2.7.X以及安装locust遇到ssl的问题
- 在CentOS上安装Python
- 在centos 6.x上安装chrome浏览器
- 在 CentOS 6.x上安装 docker.io成功
- SpringMVC提交数据的同时上传文件
- Android开发时遇到的问题
- 浅谈扩展KMP算法
- mysql 数据库,表,字段的字符编码
- 克隆虚拟机
- 在Linux CentOS 6.x上安装Python 2.7.9
- 用Navicat for Mysql导入.sql文件
- 理解同步与异步,及java中实现同步机制的方法
- NISO下的任意串口类printf函数的实现
- SpringMVC集成Ecache缓存配置
- 加密技术
- win10环境下安装Ubantu双系统
- (转)MySQL执行计划解读
- nextInt()、nextline()、next()