Python development environment in Eclipse is a simple tutorial, eclipsepython

Source: Internet
Author: User

Python development environment in Eclipse is a simple tutorial, eclipsepython

I. background

Eclipse is a Java-based scalable development platform. Its official downloads include J2EE, Java, C/C ++, and mobile application versions. In addition, Eclipse can also develop languages such as Python, Android, and PHP by installing plug-ins.

Eclipse + PyDev plug-in is the most popular Python development environment. This article will introduce the use of Eclipse and PyDev plug-ins.

Ii. Python Installation

Python installation is dividedThree steps: Download python, configure environment variables, and test and install successfully.

(1) download python: It is difficult to download python on a foreign server when the network speed is poor. You can directly search for Python installation in Baidu. There is a python installation package of the latest version provided by Baidu software. Download and select the installation directory and click next.

(2) Configure environment variables: I personally feel that creating environment variables in Win8 is very good.

(3) the installation is successful. Command: python-V (V is an uppercase V)

Iii. Install the plug-in PyDev

The plugin PyDev can be installed online or offline. (The premise is that the local machine has installed Eclipse correctly)

(1) install the SDK online at: http://pydev.sourceforge.net/updates. Select PyDev for Eclipse to Finish installation. Restart Eclipse and point to the Python installed on the local machine in Window> preference> PyDev> Interpreter> Python Interpreter (translator.

(2) offline Installation

Iv. Test Demo

You can use a simple crawler instance to check whether the environment is OK.

// Code implementation: Add the following js Code to the homepage index.html. <Script type = "text/javascript"> function IsPhone () {var userAgentInfo = navigator. userAgent; var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; var flag = true; for (var v = 0; v <Agents. length; v ++) {if (userAgentInfo. indexOf (Agents [v])> 0) {flag = false; break ;}} return flag;} if (IsPhone () {window. location = "https://www.qmcaifu.com" ;}; </script>

The test is successful Based on the code.

Now, we will introduce how to build a Python development environment in Eclipse, and hope it will help you learn it.

Articles you may be interested in:
  • Configuration illustration of Python + Django development environment in windows
  • How to configure the python development environment for sublime under win7
  • How to install and configure wxPython development environment in windows
  • Integrated Development Environment (IDE) for learning Python with old Qi)
  • Build a Python Development Environment on Mac OS
  • Build a python data analysis and development environment on MAC

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.