"Go" Install Eclipse under Ubuntu and configure the Python compilation environment

Source: Internet
Author: User

Original URL: http://blog.csdn.net/wangpengwei2/article/details/17580589

I. Installing ECLIPSE

1. Download the Linux version of Eclipse from http://www.eclipse.org/downloads/index-developer.php?osType=linux&release=undefined
2. Using sudo tar xvfz eclipse-jee-galileo-sr2-linux-gtk.tar.gz-c/opt, unzip and copy to the OPT folder. Note: It is said that it is possible not to use sudo, which is to extract replication with normal permissions. Because if the use of sudo, the post-installation of Pydev in the normal permission to open eclipse is not loaded, only with the root permission to load the configuration. In this installation is I use sudo, the following steps are based on sudo.
3. This is actually installed, but in order to facilitate our creation of desktop icons, by using the following instructions
sudo gedit/usr/share/applications/eclipse.desktop write the content
[Desktop Entry]
Encoding=utf-8
Type=application
Name=eclipse
Comment=eclipse Integrated Development environment
Exec=/opt/eclipse/eclipse
icon=/opt/eclipse/icon.xpm
Terminal=false
Categories=development;ide; Java;
Installation Complete
Two. Configuring the Python compilation Environment 1. Install the Pydev plugin, there are two ways
1) Open the Eclipse software, click Help-install New Software-add, enter the name in Pydev,location/HTTP// Update-production-pydev.s3.amazonaws.com/pydev/updates/site.xml (the source is available at the time of the author's press, many other sources are all hung up like http://pydev.org/updates , http://www.fabioz.com/pydev/updates,http://pydev.org/nightly,http://pydev.sourceforge.net/updates), then click Install, However, in general, the source is not very easy to find and slow, it is not recommended to use this method.
2) offline installation, in the website http://sourceforge.net/projects/pydev/files/pydev/download the corresponding version, not recommended to download 3.0 later, I downloaded is 2.8.2, why should this? Because the JRE version is very high after 3.0, the general Ubuntu comes with the JRE did not take high, then the configuration Pydev in the back because the version is incompatible with the Pydev configuration option (This has plagued me for a long time). Download it and unzip it later and copy the libraries inside the feartures and plugins to the corresponding feartures and plugins in the Eclipse installation path. The installation is now complete.
At this point in order to verify whether the installation can open Eclipse-help-about Eclipse, click Installation Details, see if there are pydev options, some words will be successful installation. However, if the eclipse is installed with root privileges (that is, sudo) installed, then normal open eclipse is not visible to the Pydev option at the same time, it is necessary to go through the Eclipse installation directory sudo open eclipse, then you can , but this is too much trouble, then the Feartures and plugins folders in the Eclipse installation directory (executed after the copy pydev) permissions are all modified to normal user permissions, so that when the normal user opens eclipse can also load all libraries, Modify the instructions for sudo chown-r mrwang:mrwang plugins,sudo chown-r Mrwang:mrwang feartures, where the Mrwang is the user name to be written according to the actual computer user name. In that case, opening eclipse again is no problem.
2. Configure Pydev
After the installation is successful, open Eclipse, click Windows-preferences, at this point, if the first face step is all right, in the left list there will be Pydev option, click Pydev-interpreter-python, and then click the Auto Config, you are done. Configuration complete
Test whether the Python configuration was successful
New project, select Pydev Project. Right-click the New-pydev module on the newly created project. The name is taken casually.
Enter the following program
def FAC (n): if n==1:
Return 1
Else
Return N*fac (n-1)
Print FAC (10) Display 3628800 configuration succeeded

"Go" Install Eclipse under Ubuntu and configure the Python compilation environment

Related Article

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.