In the recent development of the python, today it is easy to write the Python installation process and the Pycharm configuration of the road,
1-Preparing for work
The version of python2.x and 3.x is slightly different in syntax, the difference is that the output statement is different, this can see the relevant documents.
Python3.6.1, can be downloaded on Python's official website: 32-bit python download: http://www.cr173.com/soft/16395.html,64-bit python download: http://www.cr173.com/ Soft/417310.html. Download and install directly after the test, to see if Python is configured into environment variables, computer--Properties--Advanced system settings--environment variables--System environment variable--path path, Locate the path to the Python.exe file under the installation directory and add it below the path path, separated by semicolons, for example I have to configure 1:
Figure 1 Adding Python to an environment variable
Figure 2 Testing If Python is installed successfully
After the DOS window to test whether the installation, with the shortcut key Win+r Open the DOS window: input python appears 2 below the installation success.
2-Installing Pycharm
Pycharm is a Python IDE with a complete set of tools to help users improve their efficiency when developing with the Python language, such as debugging, syntax highlighting, project management, code jumps, smart tips, AutoComplete, unit tests, versioning. In addition, the IDE provides advanced features to support professional web development under the Django framework. Its interface design is friendly, all kinds of library can be installed in pycharm inside, quick and convenient, use very comfortable. Pycharm can download on the official website: https://www.jetbrains.com/pycharm/download/#section =windows, select the corresponding version to download.
Pycharm download good after the installation can be one-click, you can adjust the installation path, and then open Pycharm, the introduction of the newly installed interpreter: File--setting--project--project Interpreter3 shown:
Figure 3 Introducing the interpreter path in Pycharm
This when you install Python pycharm will automatically detect the interpreter, and will automatically add to the road, and then open pycharm under the terminal, enter the Python detection is installed successfully in Figure 4 shows that the installation success:
Figure 4 Test success under Pycharm terminal
Now write a very simple test example: Create a new Python file File--new--python package, the new Python file named test.py, open the new file, write the following code 5,
Figure 5 Test Code
Click to run, 6 shows the result of the operation, it means that everything is ready to install, waiting to roll up the sleeves of the code.
Figure 6 Running results
Python Learning Path 1-Environment construction and PYCHARM configuration