How to Install Python 2.7 on CentOS6.5
来源:互联网 发布:php开源博客系统源码 编辑:程序博客网 时间:2024/06/05 07:18
Today, I was trying to install an application on my CentOS 6.5 system which required Python >= 2.7, but there are Python 2.6 installed, which we can’t remove as other application’s depends on it. This tutorial will help you to install Python 2.7 without removing older versions.
Step 1: Install GCC
Firstly make sure that you have gcc package installed on your system. Use following command to install gcc if you don’t have it installed.
# yum install gcc
Step 2: Download Python 2.7
Download Python using following command from python official site. You can also download latest version in place of specified below.
# cd /usr/src# wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz
Step 3: Extract Archive and Compile
Use below set of commands to extract Python source code and compile it on your system using altinstall.
# tar xzf Python-2.7.12.tgz# cd Python-2.7.12# ./configure# make altinstall
make altinstall is used to prevent replacing the default python binary file /usr/bin/python.
Step 4: Check the Python Version
Check the latest version installed of python using below command
# python2.7 -VPython 2.7.12
- How to Install Python 2.7 on CentOS6.5
- how to install phpmyadmin on centos6
- how to install phpmyadmin on centos6
- how to install phpmyadmin on centos6
- How to install Python 2.7.3 on CentOS 6.2
- How to Install Python 2.7.13 on Ubuntu & LinuxMint
- How to Install Python on Linux
- how-to-install-graphite-on-centos6.6-x86_64
- how-to-install-grafana-on-centos6.6-x86_64
- how-to-install-nginx-on-centos6.6-x86_64
- how-to-install-elasticsearch-on-centos6.6-x86_64
- how-to-install-redis-on-centos6.6-x86_64
- How to upgrade gcc on CentOS6.5
- How to Install Pygame to Python 3 on Ubuntu
- How to install Python 2.7 and Python 3.3 on CentOS 6
- How to Install OpenCV 3.0 and Python 3.4+ on Ubuntu
- How to Install Python 3.5.2 on Ubuntu & Linuxmint
- How To: 5 Steps to Install phpMyAdmin on Linux
- linux内存检查及本身程序解决方案!!!
- Leetcode 105. Construct Binary Tree from Preorder and Inorder Traversal
- Linux管理员不可不知的五大命令 工具 - 51CTO.COM
- Android集成统计图 饼状图 折线图 和 柱状图
- 使用firefox的firebug插件进行网页js调试----firebug使用
- How to Install Python 2.7 on CentOS6.5
- C++编程学习50个经典网站
- 数组中两个只出现一次的数字
- JS之property和attribute
- SQLServer中的全局变量
- jersey使用方法
- PHP-FPM stop/reload: Unknown instance, service status `stop/waiting`
- 第一周博客作业
- 进程