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