Install Python2.7, PIP, Ipython Environment, Eclipse, and Pydev environment under Linux redhat
Ready to work, source Python2.6 backup:
Depending on the specific directory of which Python, the backup
Mv/usr/local/bin/python cd/usr/local/bin/python2.6
or mv/usr/bin/python/usr/bin/python2.6
Modify the program configuration using python2.6, such as Yum
Vim/usr/bin/yum
#!/usr/bin/python2.6
See if Yum is normal yum list
1, installation Python2.7
Official website Download Source package: python-2.7.13.tgz
Compilation:./configure--prefix=/usr/local
Installation: Make && Mak Install
To create a soft connection:
Cd/usr/local/bin
LN-SV python2.7 python
CP header file: \cp-a/usr/local/include/python2.7/*/usr/local/include
Input view:
2. Install Pip
Download pip-9.0.1.tar.gz
Installing Python setup.py Install
3, Installation Ipython
Download ipython-5.3.0.tar.gz
Installing Python setup.py Install
Install Pysqlite for Ipython record history: Pip install Pysqlite
4. Install Eclipse
Eclipse relies on JDK, download jdk-8u121-linux-x64.tar.gz
TAR-XF jdk-8u121-linux-x64.tar.gz-c/usr/local/
To configure the Java environment variable: Vim/etc/profile finally add:
Java_home= "/usr/local/jdk1.8.0_121" Path=${java_home}/bin: $PATHCLASSPATH =.:${java_home}/lib/dt.jar:${java_home} /lib/tools.jarexport Java_homeexport Pathexport CLASSPATH
Download eclipse-java-neon-3-linux-gtk-x86_64.tar.gz
TAR-XF eclipse-java-neon-3-linux-gtk-x86_64.tar.gz
Eclipse Installation Pydev plugin :
Help-install new software
Add-name:pydev-location:http://pydev.org/update
Select only Pydev for Eclipse develop, and then continue to the next step until the installation completes the restart.
Configure Python: Here is windows, select the appropriate path on Linux.
New Pydev module, try it, write a HelloWorld
At this point, the installation is complete, intermediate installation if the error, will indicate the lack of some development library, yum installation can be.
Installing the Python development environment under Redhat