Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ CentOS 6.4 (64bit) install Python 2.7.5     - Linux shell scripts bubble sort (Programming)

- RHEL 6.6 install GNOME desktop environment (Linux)

- Linux --- process tracking (Linux)

- Install DB2 V10 and Data Studio V3 under Linux (Ubuntu) environment (Database)

- tespeed - test speed of Python tools (Linux)

- Linux crontab use (Linux)

- Win8 mount disk partitions under Ubuntu (Linux)

- To install Google Chrome browser under Ubuntu 14.04 LTS (Linux)

- Oracle RAC node on the expulsion of the inspection process on OEL6.3 (Database)

- Linux excellent text editor (Markdown, LaTeX, MathJax) (Linux)

- Terminal Linux command prints - echo (Linux)

- Lenovo Ultrabooks Ubuntu system can not open the wireless hardware switch solutions (Linux)

- How to contribute code on GitHub uploads (Linux)

- Linux network cut package is not fully defragment (Linux)

- Ubuntu Linux use MAC binding against ARP attacks (Linux)

- Safety testing Unix and Linux server entry succinctly (Linux)

- Precautions against hackers Linux environment (Linux)

- Compile and install Redis and register as a system service under RedHat5.8 environment (Database)

- Python regular expressions: how to use regular expressions (Programming)

- Ubuntu 14.04 users how to install VLC 2.2.0 (Linux)

  CentOS 6.4 (64bit) install Python 2.7.5
  Add Date : 2016-10-02      
  CentOS 6.4 (64bit) install Python 2.7.5

(1) To ensure that yum can use, if you uninstall the default python 2.6
 a. to the mounting plate Packages found in the rpm package python2.6

b. execute rpm -Uvh --replacepkgs rpm package name .rpm to install the original version of python, so yum can work

(2) install the GCC, with the following command (before installing python, best confirm gcc is installed, otherwise the ./configure stage will be incorrect report.)
 #yum install gcc gcc-c ++

 (3) 2.7.5 download
 # Wget http://python.org/ftp/python/2.7.5/Python-2.7.5.tar.bz2

 (4) to start the installation
#tar jxvf Python-2.7.5.tar.bz2
 #cd Python-2.7.5
 #. / Configure
 #make install

After (5) Even normally python2.7 installation is successful, the system defaults to the python is still version 2.6, which is based on python2.6 yum to work properly.

So I want to point to the system default python version 2.7.
# /usr/local/bin/python2.7 -V
 # Mv / usr / bin / python /usr/bin/python.bak
 # Ln -s /usr/local/bin/python2.7 / usr / bin / python

 (6) Fixed yum error:
a. is now running yum command, being given. Tip python wrong version. So we should still point to the old python2.6 yum version:
vi / usr / bin / yum

 . B in the open file in the first line, which is designated python environment that line of code, modified to:
#! / Usr / bin / python2.6
- 5 fast Node.js application performance tips (Programming)
- Installation and Configuration rsync server under CentOS 6.3 (Server)
- A command to install Sublime Text 3 on Manjaro / Archlinux (Linux)
- mysqldump MySQL command-line tool (Database)
- Secondary exponential smoothing prediction method implemented in Python (Programming)
- CentOS 7.0 Experience with previous versions (Linux)
- 10 tips daily Docker (Server)
- Iptables small summary (Linux)
- Shutdown - an advanced shutdown artifact (Linux)
- AngularJS - Custom instructions (Programming)
- Tree Traversals Again (Programming)
- Performance Optimization: Using Ramlog transfer log files to memory (Linux)
- Use regular expressions to check whether the input box to enter a URL (Programming)
- SteamOS installation under Ubuntu 14.04 (Linux)
- How to protect your eyes automatically adjust the screen brightness on Linux (Linux)
- Using IntelliJ IDEA 13 integrated development environment to build Android (Linux)
- Ubuntu 14.10 install KDE Plasma 5.2 (Linux)
- How to Install Sticky Notes on Ubuntu and Derivatives (Linux)
- xCAT install and update software (Linux)
- Close Pycharm spell check (Programming)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.