-
- File preparation: A. Python installation file: I use Python-3.4.3.amd64.msi;
- Installation is very simple, directly double-click the next point;
- Configure the environment variables, locate the path in the Windows system variables, and add the Python installation path;
- Open the Command window using ctrl+shift+ right-click on the desktop, enter Python, and if the installation succeeds, 1 results will appear.
Figure 1
- Configure the Python integrated development environment under Windows
Using the Eclipse installation Pydev plugin to configure the development environment for Python under Windows, you need to prepare the file for eclipse: Download it on the website (eclipse-standard-kepler-sr1-win32-x86_64.zip). However, if you have integrated Java on the downloaded eclipse, you will need to install Java and configure the Java environment variables. Also prepare the Pydev plugin.
- Unzip the Pydev, copy the files under the plugins and features directories in the Unzip folder to the plugins and features directories in Eclipse, and then reopen eclipse to have the Python project option set up.
- Configure Python interpreters: Open eclipse->preferences, search interpreter, 2;
Figure 2
3. Click on Quick auto-config, search python automatically, configure complete 3, click OK.
- New->project Open the New Project Wizard, select Pydev->pydev project,4 as shown, click Next;
Figure 4
2. Enter project name in the Python Project dialog box, click Finish, and 5.
Figure 5
3. In the project, right-click on the New->pydev package, enter the packet name, finish, create the PyDev Module under the Pytest package, name HelloWorld, and enter print in the helloworld.py file (' Hello World '). the direct run will appear "Syntaxerror:non-utf-8 code starting with ' \xc4 ' in the file D:\MyProgram\python\pyTest\pyTest\helloWorld.py on Line 4, but no encoding declared; See http://python.org/dev/peps/pep-0263/for Details "The problem will not occur if you add #coding=gbk to the beginning and then run." As shown in 6.
Figure 6
Python installation and configuration under Windows