How to install python after downloading, how to run python after downloading

This article mainly introduces how to install python after downloading it. It has certain reference value. Friends in need can refer to it. I hope you will gain a lot after reading this article. Let the editor take you to understand it together.

Without further ado, let’s get straight to the real stuff~ (There are benefits for readers at the end of the article)

1. Download the installation program from the official website

1. Official website page and download location

Welcome to Python.org

You can search Python through Baidu to find the official website address, or click the link directly to enter the official website. The official website page that opens is as follows:

img

I am using Google Chrome, which comes with Chinese and English translation by default. To view the English page, the download address is as follows:

img

The options in the upper right corner can be switched to Chinese, as follows:

img

Because in order to consider everyone's common situation, the English version of the page will be displayed later.

2. Download version classification and selection

You can see from the download address that the latest version is Python3.8.3. Click in and scroll down to the bottom of the page to see different Python download versions, as follows:

img

I am using a Windows system, so taking the Windows system installation as an example, you will find that there are 64-bit and 32-bit versions to download. The 64-bit is easy to identify, and the 32-bit is not marked. In fact, there are three versions below the 64-bit. It is a 32-bit system installation software. We choose the 64-bit middle version to download and install.

img

Click, and the browser or downloading software will automatically download, about 27M. In order to facilitate everyone to identify the version, a Chinese display will be released:

img

3. The installation software download is completed

After the software download is completed, it is as follows:

img

2. Python software installation

1. Click Install and Select

Click on the downloaded software to install it. There is an option below. The system is not checked by default. You need to manually check it yourself, which is to set the environment variables, as follows:

img

2. Installation process

After selecting, click "Install Now" to enter the installation process. It will take a few minutes, as follows:

img

3. Installation completion and verification

After the installation is completed, a successful installation prompt will be displayed, as follows:

img

Okay, close this window to verify whether Python is successful. Open "Run" through the "win+R" shortcut key, then enter cmd, enter the command with a black box page, and then enter "python", the version number and installation will be displayed. Information indicating successful installation, as follows:

img

3. Run the first program: Hello Python

1. Run the program method 1

The simplest way is to run the Print function in the command prompt to print Hello Python, as follows:

img

2. Run the program method 2

The Python installation will come with the IDLE integrated environment, which can be found in the window program list, then click in, enter print, and run as follows:

img

Both run programs through the command line, but IDLE is relatively better and will display different color identifiers.

3. Run program method three

The third way is to run the py file directly. You can create a notebook created by Notepad. It should be in the same folder as the Python code by default. Write the code in the notebook, as follows:

img

Then keep it closed and change the file format suffix of the notebook to .py. Some computers do not display the suffix by default and can be modified by viewing it, as follows:

img

After modification, the system will prompt you to confirm, just click Confirm.

img

Then operate through the command prompt. Be sure to operate in the system environment, not under the Python program. Enter python + the py file you want to run. There must be a suffix of the file, as follows:

img

The above is all of this article, I wish you a happy study! !

Insert image description here

The above is all the content shared today. If you find it useful, please like and save it!

Python experience sharing

Learning Python well is good whether it is used for employment or as a side job to make money. Moreover, learning Python well can also be in line with future development trends-artificial intelligence, machine learning, deep learning, etc.
The editor is a Python development engineer. He has compiled a set of the latest Python system learning tutorials, including basic Python scripts to web development, crawlers, data analysis, data visualization, machine learning, etc. Use Python to draw stars. . If you also like programming and want to change careers, do a side job or improve work efficiency by learning Python, this [latest complete set of Python learning materials] will definitely be useful to you!

The editor has prepared the following seed materials for friends who are interested in Python!

For beginners with 0 basics to get started:

If you are a novice and want to get started with Python quickly, you can consider training!

  • The learning time is relatively short, and the learning content is more comprehensive and focused.
  • You can find a study plan that suits you

Including: Python activation code + installation package, Python web development, Python crawler, Python data analysis, artificial intelligence, machine learning, Python quantitative trading and other learning tutorials. Let you learn Python systematically from scratch!

1. Learning routes in all directions of Python

The Python all-direction route is to organize the commonly used technical points of Python to form a summary of knowledge points in various fields. Its usefulness is that you can find corresponding learning resources according to the above knowledge points to ensure that you learn more comprehensively.
Insert image description here

2. Learning software

If a worker wants to do his job well, he must first sharpen his tools. The commonly used development software for learning Python is here, saving everyone a lot of time.

3. Introductory learning video

When we watch videos to learn, we cannot just move our eyes and brains but not our hands. The more scientific learning method is to use them after understanding. At this time, hands-on projects are very suitable.

4. Practical cases

Optical theory is useless. You must learn to follow along and practice it in order to apply what you have learned to practice. At this time, you can learn from some practical cases.

5. Interview materials

We must learn Python to find a high-paying job. The following interview questions are the latest interview materials from first-tier Internet companies such as Alibaba, Tencent, Byte, etc., and Alibaba bosses have given authoritative answers. After finishing this set I believe everyone can find a satisfactory job based on the interview information.


The latest complete set of [Python introductory to advanced materials & practical source code & installation tools] (safe link, click with confidence)

I have uploaded it to CSDN official. If you need it, you can scan the official QR code below to get it for free [100% free guaranteed]

*That’s it for today’s sharing. If you like it and it is helpful to you, please remember to like and follow ~ See you next time !

Guess you like

Origin blog.csdn.net/chatgpt001/article/details/135438554