Ubuntu12.04 under Configuration Eclipse+pydev

Source: Internet
Author: User

开发平台:Ubuntu12.04IDE:Eclipse3.7.2python版本:python3.4.4

Build Eclipse+pydev development environment, found some tutorials on the internet, some errors, tried for a long time, also took a lot of detours. Hereby tidy up, need to use of friends, can refer to.
Installation steps:
1, installation python3.4.4

sudo apt-get install python3.4

ubuntu12.04 installed and used by default is python2.7, I want to use Python3, so I reinstalled python3.4. It is important to note that you should not uninstall the original version of Python that was already installed. Because there are some software that only support the old version of Python, uninstall will be a variety of error! In addition, in the terminal input Python default open is python2.7, if you want to change, you can try to link, as long as the conflict can be.
2. Install Eclipse

sudo apt-get install eclipse-platformsudo apt-get install eclipse-cdt

The standard eclipse only supports Java development, and the CDT plugin must be installed for C + + program development. For the sake of trouble later, I was installed together.
3, Installation Pydev
A, the installation needs to review the version of Eclipse, the eclipse version and Pydev to be appropriate, Pydev installation version is too high, during the installation process, the following problems occur:

b, check the method help–>about eclise Platform, is found in the Eclipse menu bar help in the about Eclipse Platform, for example, my version is as follows:

C, click Help–>install New Software, the following dialog box appears, click Add.

D, add library, name: Just a name, location:http://update-production-pydev.s3.amazonaws.com/pydev/updates/site.xml then click OK.
Note: This is not the same as some other tutorials on the web, other tutorials are mostly used: http://www.pydev.org/updates/This site can now be used, but only install the latest version of Pydev, are 4.* version, For my version Eclipse3.7.2 obviously not suitable, the above mentioned error will appear. So I found a new source address, and this source is handy until I publish my blog. If the location is added incorrectly, often error, how to remove the path to add the wrong? window–>preference–>install/update–>available software Sites, remove the added error address.

E, add, remove the option to show only the latest version, so we can see many versions of Pydev, as follows:

F, here I choose the version of 2.8.2, and then proceed to the next step, as follows:

G, the rest of the way down on it, at the end of the installation, will be prompted whether to trust these certificates, check the trust option, then click OK. As follows:

h, after installation, select Restart now restart, and then configure the Pydev interpreter.
4. Configuring the Pydev Interpreter
A, Window–>preference–>pydev–>interpreter-python, click New New can, as follows:

b, add Python3.4 path, interpreter Name, random, add to the path. My configuration is as follows:

C, select the required library, my configuration is as follows:

D, wait for configuration to complete.
5. Testing
A, the new project, as follows:

B, select Pydev Project,grammar version Select 3.0. The construction works are as follows:

C, add source file, right-click Hello, add new file.

D, the final test is successful. As follows:

at this point, Ubuntu12.04 configuration Eclipse+pydev complete! If there is an error, please also correct, thank you!

Ubuntu12.04 under Configuration Eclipse+pydev

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.