Python is available in Linux, windows, Macos, and other operating systems. It can be used across platforms unless platform-related functions or libraries of specific platforms are used. Today, we will mainly discuss the installation and configuration of windows systems.
I. first recognized Python
Python official website: www.python.org
Version: python-3.4.3.amd64
Somebody first came into contact with Python and did not use Python 2.x to develop real projects. Therefore, I do not know whether the 2.x and 3.x versions are superior or inferior. At present, I am interested in understanding and learning.
II. Installation
Installation in windows
Somebody has no real Python development experience, so it is only limited to learning. Therefore, all operations are performed in windows.
1. download the installation program, link: https://www.python.org/downloads/
2. after the download is complete, double-click to run the downloaded python-3.4.3.amd64.msi File (select your own user, default is install for all users)
3. specify the installation path
4. select the custom option. we recommend that you check Add Python.exe to Path here (the trouble of manually configuring path after installing Python is omitted)
5. wait until the installation is complete
Verify whether the installation is successful: press win + R, press enter, and type the 'python' command in the command line to display as shown in, that is, the installation is successful.
III. IDE
1. Python built-in editor. somebody has been used for a few days since it came into contact with python. When I first got to know java, I used .txt to write java code, which is a gradual automated process.
2. Notepad ++ is an open-source text editor with powerful functions. you can run python scripts using the following methods.
1. press 'f5' or click 'run'. the following window is displayed:
Run the following command:
Cmd/k python "$ (FULL_CURRENT_PATH)" & PAUSE & EXIT
In the copy to box, set the custom shortcut key, and set the somebody to alt + r
2. verify whether the setting is successful
Create a new python script file (ending with. py), somebody creates a new test. py file, and simply writes an output statement: print ('Hello Python ~ ') Save. Use the shortcut key just defined
The result is shown in:
The first line is the output result of the output statement, which proves that the configuration is correct.
3. Eclipse plug-in
1. install Eclipse
2. Help => Install New Software => Add, as shown in
Enter name, then location (http://pydev.org/updates), click OK
3. wait until it appears as shown in
Select PyDev for installation
After installation, restart to create a python project.
The above is all the content of this article. I hope you will like it.