Configure Python integrated development environment for mac (Eclipse + Python + Pydev) and pythonpydev

Source: Internet
Author: User

Configure Python integrated development environment for mac (Eclipse + Python + Pydev) and pythonpydev

1. Download the 64-bit Eclipse for Mac.

Go to the download page (http://www.eclipse.org/downloads/) on the Eclipse official website and I chose the software package shown,

Hyperlink used by the browser during the download process

Http://ftp.daum.net/eclipse//technology/epp/downloads/release/mars/R/eclipse-jee-mars-R-macosx-cocoa-x86_64.tar.gz

After the download is complete, decompress the package. However, because Eclipse is developed based on java, java JDK is also required during runtime.

2. Download and install JDK

Go to the java Development Language Pack JDK official download page (http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html) as follows:

Click the red area to jump to the (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) for download, as shown below:

First, select the radio button marked in 1, indicating that after the acceptance is agreed, the system automatically refreshes and selects the red area marked in 2 to start downloading, after installation, the installation process is no different from that of other common software. However, during the installation process, you may encounter prompts such as prompting that the source of the installation package is not trusted. Modify the installation process as follows:

Select (any source) and reinstall it. After installation, run java-version on the terminal.

The result is displayed as shown in.

Now you can double-click the executable file in the decompressed folder of eclipse to verify whether the runtime environment is set up normally.

3. Python version Selection

The Python version that comes with Mac is relatively old. My local time is as follows:

 

The built-in Python version is 2.6. I updated it to version 2.7. Because I am a beginner in Python and I have read the book "Python core programming", I have no special requirements for the version, therefore, it is not updated to the latest version.

If you need a specific version, you can go to the official Python website (https://www.python.org/downloads/) to download the installation.

4. download and install the Pydev plug-in

Go to the download page of Pydev's official website (http://pydev.org) to download (http://pydev.org/download.html) My selection, as shown in:

After the download is complete, decompress it, and copy the features and plugins directories under the decompressed directory to the corresponding directory under Eclipse, prompting you to select the merged file.

 

5. Configure the python development environment of Eclipse

Start Eclipse and set it. The specific steps are as follows:

Click OK. After that, you can create a Python project. The procedure for creating a Python project for the first time is as follows ,:

Click (Other), select the PyDev Project in (PyDev), and then click (next)

The interface shown in is displayed. Enter the project name and configure the project as needed. Click finish ). Complete the project creation.

The project results are as follows:

New file:

Click (File). The page shown is displayed. Enter the File name and click (finish) to create the File.

Enter the code in the file and execute the code. The result indicates that the environment is set up normally.

 

I am a beginner in Python. I have referenced a lot of information on the network in the environment construction process. I am just getting in touch with Eclipse. Please forgive me for improper use. If there is any error, please point it out. Thank you!

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.