Python installation

https://www.python.org

Download the Python program from the official website to install it. Tick both option boxes below, and then click Customize installation Go to the next step
Add Python .. To PATH # Add environment variable
 python-install.png

take Install for all users Check the option, and leave the other options as default. Click Browse, select the installation directory according to your needs, and click Install to install
 python-install2.png

Some commands

CMD Window Execution

  1. python -V View version
  2. where python View installation location
  3. Pip list or pip freeze View installed libraries
  4. Pip uninstall library name Uninstall Installed Libraries
  5. pip list --outdated View updatable third-party libraries
  6. Pip install -- upgrade library name update library

If appears Not an internal or external command Check whether system variables are added. Generally, system variables are automatically added
Path: My Computer - Properties - Advanced System Settings - Environment Variables - System Variables - Path

Is the installation speed of the pip library slow?

The libraries we install are all downloaded from foreign sources. Sometimes the download is only tens of kb/s for line and other reasons. We can switch the source to domestic sources for download.

Common domestic sources of pip:

 Alibaba Cloud https://mirrors.aliyun.com/pypi/simple/ University of Science and Technology of China https://pypi.mirrors.ustc.edu.cn/simple/ Douban https://pypi.douban.com/simple/ Tsinghua University https://pypi.tuna.tsinghua.edu.cn/simple/ University of Science and Technology of China https://pypi.mirrors.ustc.edu.cn/simple/

Add - i parameter when using
For example:

 Pip install library name-i https://mirrors.aliyun.com/pypi/simple/
End
If you think my article is useful to you, please feel free to appreciate it