About novice configuration python environment
The first step in learning python natural python is installed, however bloggers in the process of installing python in more or less have some small doubts, and now to share out for your reference during the installation of python.
Step One: Download Python Package
In Python's official website www.python.orgWe can download the latest version of the Python Package, click to download, (if your computer is 64-bit, choose 64-bit installation package that is linked with the -64)
introduced here under the same version of each link i.e., the difference between the
(web-based / executable / embeddable zip file) installer distinction between.
-
embeddable zip file: zip file compression
-
web-based: Network-based installation
-
executable: executable files
The main difference between the different types of documents that:
-
embeddable zip file is compressed into a zip of Python
-
web-based file is relatively small, because he was in before the installation via network download Python
-
executable to install it is to download the full Python install on this machine
(By the way Tucao about download speed ...)
Step 2: Install python
Open the downloaded installation package, the following interface will pop up:
Before selecting installation we need to choose whether to automatically added to python windows environment variables, that is, whether the bottom of the checkAdd python 3.8 to PATHIf not checked in here you need to manually add it to the environment variable.
Then if you want to choose the default installation, then choose the first one that is the Install Now ;
If you want to customize the installation on the election of the second namely Customize Installation ;
Here as a model to customize the installation:
Click Customize installation after a custom installation, go to the next step, select the required components to install (if no special requirements are checked to), and then click Next:
explain the meaning of each option:
- Documentation: install python Documents
- pip: install python package tool
- tcl / tk and IDLE: install tcl / tk and IDLE development environment
- python test suite: install python test
- py launcher: python launcher
- for all users: for all users of the machine
Next we can customize the installation path of python:
(without special requirements to maintain the default check)
Select Click Install to install python After installation path.
The following interface means that the installation was successful:
The third step: the test is successful installation of python available
A win + r open operation, open type cmd command prompt, type python -V, and press ENTER,
attention inputThere is a space between the capital needed and V - python and
If the following screen appears, it means that we have a successful installation:
Step four: using the installed python tried to write a hello world
After the installation is successful, we can try to write a python program, as usual, we can write a hello world;
Open a command prompt, hit Enter after entering the python, and direct input print(“hello world”), And then hit Enter to run the program, our first python program is complete: