Python software installation package Baidu cloud, python software installation tutorial 2020

Hello everyone, the editor will answer the question of which disk is better to install the python software for you. Many people still don't know the python software installation process, customize, let's take a look now!

One: python installation

Chinese characters, strings with spaces, special symbols, and pure numbers (starting with a number) are not allowed in the path to install the software. It is recommended to be the root directory of a certain drive letter.

1) Create a folder in the root of d:python

2) Open the WEB browser to visit: Download Python | Python.org The exe file or msi file is a suffix name that can be run directly by windows. The locomotive collects articles in batches and is pseudo-original .

 3) Right-click to open with administrator privileges or directly double-click the downloaded python-3.8.2-amd64.exe file

4) Select all possible components, next step.

5) For advanced settings, check Available for all users, select a custom installation directory, and click install until the installation is successful.

6) Verify that the installation was successful

cmd->python, the following command line appears, indicating that python is installed correctly and the environment variable configuration is correct.

2. Environment variable configuration (basic skills, must be mastered)

The problem that xxxx is not an internal command is that the environment variable path is not configured correctly.

The purpose of configuring environment variables?

Let Windows know where a certain software you installed is, and you can find it when you run the command corresponding to the software under cmd.

Advanced property settings.

In the system properties window->advanced tab->environment variables-->system environment variable path

Three, vscode installation

Change the installation directory, next step until complete (optionally create a desktop shortcut).

Install three basic plug-ins: Simplified Chinese package, python,

Restart vscode.

Create the project directory and the first .py file in vscode (that is, the python file)

File-->Open Folder--Select a folder prepared in advance as the project directory.

Create a first.py file (module) in the pythonDemo directory, and enter a line of code: print("hello world")

Select the python interpreter for vscode (run the python file in vscode to select the locally installed python environment)

Run the edited python file (if it is the first time to run, there may be a pop-up window in the small right corner prompting to install the pylint tool, just install it directly, and restart vscode once after installation)

おすすめ

転載: blog.csdn.net/mynote/article/details/132261374