Python IDE installation and environment configuration

Install

Download anaconda first. This is the official website of anaconda: https://www.anaconda.com/
it is recommended to download from the mirror site, otherwise it will be a bit slow. The following is from Tsinghua Source:
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
After downloading, double-click the installation package.
Welcome screen:
Insert image description hereCheck the agreement and agree
Insert image description here
. Select the installation type (user and system).
Insert image description here
Select the installation path and select
Insert image description here
advanced settings (if the first item is not checked, you need to manually add environment variables later. If you check it, you no longer need to manually configure the environment variables. If you are too lazy to bother) , just check it directly).
Insert image description here
Next is Next, finish.
Insert image description here
Insert image description here

Environment configuration

If you are installing anaconda and the red font is checked in the advanced options, there is no need to configure the environment here and you can skip it directly.

First check whether the python environment is configured, use the view version command:
win+r to open the cmd command line, enter python -Vor python --version(the former is a capital V, a dash, the latter version is a lowercase version, two dashes) python must be followed by a space .
If the screenshot is similar to the one below, the installation is successful. My installation is python 3.8.3 version.
Insert image description here
If the version can be displayed on the command line, the installation is successful and there is no need for the environment configuration operation mentioned below.

The following is the environment configuration:
right-click the start menu in the lower left corner, click system options (that is, Settings => System => About), scroll to the bottom, and find the advanced system settings.
Insert image description here
Click Environment Variables
Insert image description here
and click Edit in System Variables (if you are a user during installation, add it in the user) Create
Insert image description here
the following variables in the editing interface (you need to find the directory where you installed anaconda)
My anaconda is installed in the F drive

F:\ProgramData\Anaconda3
F:\ProgramData\Anaconda3\Library\mingw-w64\bin
F:\ProgramData\Anaconda3\Library\usr\bin
F:\ProgramData\Anaconda3\Library\bin
F:\ProgramData\Anaconda3\Scripts

like this:
Insert image description here

Finally, check the python version in the cmd command line to verify whether the installation is successful.
Insert image description here
If it looks like this, the installation is successful.

Guess you like

Origin blog.csdn.net/m0_67313306/article/details/128166910