Getting Started with Python Installation

1 Install from app store

It is recommended to use the Microsoft App Store to install, open the start menu
Insert image description here
Search for python in the App Store
Insert image description here
Select the latest version to download and install a>

2 Install through official

You can also use the installation package from the official website and enter the following URL

https://www.python.org/

Insert image description here
Click Downloads to download the latest version

You need to check and add it to the system variables during installation
Insert image description here
There are two installation methods, one is default installation and the other is customized installation. If you do not want to install You can choose to customize the installation on C drive

Insert image description here
Keep the default selection and click next

Insert image description here
Set your own installation directory
Insert image description here
Here I set the installation path to Programs Files under the D drive
Insert image description here
Then click install and wait for the installation to complete< /span>
Insert image description here
Insert image description here

3 Verify the installation is successful

Then press win+r and enter cmd to open the command line window
Insert image description here
Enter the following command to verify whether python is installed successfully

python --version

When the version number appears, it means the installation is complete.

4 print hello world

After the installation is complete, open the start menu and find our run window
Insert image description here
Insert image description here
Enter the following statement in the window

print('hello world')

After writing, press Enter to return to hello world, which means that our environment has been set up.

Getting Started with Python 01 Installation

Summarize

This article introduces the installation process of Python, introduces two installation methods, and prints our first sentence hello world. For readers who are familiar with me, I mainly explain the use of low-code, so why are you suddenly interested in Python again?

Mainly because serverless has been used recently in the integration with the official account. During the construction process, static web page templates need to be used. This set of templates is built using Python, so we need to be familiar with the language first, and then we can follow the official account’s documentation. Integration required.

Low-code development requires full-stack development. The previous courses have explained the use of tools, front-ends, and nodejs. The following courses will focus on Python and serverless applications, so stay tuned.

Guess you like

Origin blog.csdn.net/u012877217/article/details/134546670