Install Eclipse and pydev in CentOS to debug python

Source: Internet
Author: User

First, perform the following steps:

(C ++ version), you must first install the JAVA environment JDK 1.6 or later, so the original JAVA environment must be upgraded, the idea was to upgrade the original JDK (gcj component), but later found that the operation was not good, so I changed the idea to uninstall the original JAVA environment. The steps are as follows:

# Rpm-qa | grep gcj: Check the gcj version. The JAVA environment that comes with linux
# Yum-y remove java-1.4.2-gcj-compat uninstall gcj
Download file jdk-6u22-linux-i586-rpm.bin
# Chmod u + x jdk-6u22-linux-i586-rpm.bin
#./Jdk-6u22-linux-i586-rpm.bin Select YES installed
Install environment variables and then restart them to take effect.
# Vi/etc/profile
Export JAVA_HOME =/usr/java/jdk1.6.0 _ 10
Export CLASSPATH =.: $ JAVA_HOME/jre/lib/rt. jar: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
Export PATH = $ PATH: $ JAVA_HOME/bin

(2) install eclipse(eclipse-cpp-helios-sr1-linux-gtk.tar.gz) after installing the Java environment)

Automatically generated in this directory after decompression, as shown in


(3) install the python environment. The download is python-2.6.5.tar.bz2,

# Tar-jxf Python-2.6.5.tar.bz2
# Enter the decompressed folder
#./Configure // installed in the default directory. You can use -- prefix to specify the installation directory.
# Make
# Make install // install it to/usr/local/lib by default
# Automatically update the version to Python-2.6.5 (if the version fails to be updated to the highest version, change the soft connection ln)

(4) manually install the Eclipse plug-in Pydev

Because Automatic Installation and download are too slow, you can manually download the general version for installation.

Download org.python.pydev.feature-1.6.3.2010100513.zip, which can be used in windows and linux
# Combine the decompressed two folders (features and plugins) into the two folders in the Eclipse directory.
# After restarting, you can use HELP -- About Eclipse to view the newly created green icon, as shown in:


# Configure the PyDev Interpreter, select Windows> Preferences> PyDev> Interpreter-python, click New, find your python installation path, and select python, then select the specific Libraries (related Python version information ).

# Switch to the Pydev compiling mode in Eclipse, and finally implement Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.