This article mainly shares with you a simple tutorial on setting up the Python development environment in Eclipse. The steps are simple and clear and can help you quickly build a python development environment. For more information, see
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.