Three-minute installation guide for Python environment

Three-minute installation guide for Python environment

What is Python?

Python is a flexible and versatile computer programming language , and in 2021, Python has been crowned the most popular programming language

  • Since programmers cannot unify the issue of "XX language is the best language", then I will talk about the advantages of python personally
  • Python is easy to learn , free, open source, and has a simple grammatical structure.
  • Python has strong portability , it can be executed on any system, any computer configured with a python environment
  • Python has an excellent open source community and third-party libraries , as long as a simple pip command, python's third-party libraries can open your eyes *(such as: Numpy, Pandas, Matplotlib, Requests, Opencv...)*
  • Life is short and I use Python. I hope everyone can use this elegant and simple programming language

Three Minutes Guide to Installing Python

1. Download the installation package from Python official website

Be sure to download "Windows Installer (running bit number of your own computer)" in "Stable Releases"

Note: Windows embeddable package (64-bit), the download is the installation program in .zip format
Windows installer (64-bit), the download is the installation program in .exe format, I personally think the latter is more convenient

2. Open the exe file and start the custom installation

  1. Open and double-click the python-3.9.2-amd64.exe file (because the version is different, the download file name is also different)

  2. Check Add Python 3.9 to PATH, and then click Customize installation to go to the next step;
    python installation package-Step02

  3. After entering the Optional Features, no need to operate, please be sure to select all, and click Next directly;
    python installation package-Step03

  4. Click Browse to customize the installation path. The custom installation is mainly to save space on the C drive. Click install to install;

Please note! python needs to be installed in the full English path, otherwise it will be very troublesome later!!!

python installation package-Step04

  1. Click Disable path length limit (modify the limit on the character length of the program in the computer);
    python installation package-Step05

  2. Click "close" to complete

3. Determine whether Python is installed

  • In the "Start" menu, open python IDLE to open the editor that comes with python
  • Press win+R, enter cmd in the input box, and enter python to use python in the command line tool

Congratulations! The python environment is perfectly installed~

How to install third-party libraries

  • Press win+R, enter cmd in the input box, enter
pip install 想安装的库名称
例:  pip install requests
  • View installed third-party libraries
pip list
  • Download third-party libraries with mirrors (strongly recommended)
# 由于python的站点在国外, 下载一些大型第三方库往往困难重重, 
# 但是我们可以用清华大学提供的镜像链接进行下载! 例如:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 你需要下载的库名

Start your Python journey here

Ladies and gentlemen, the above three books are really well written. You can save a lot of detours if you learn them well. Thank you, sir.

It is suitable for students with ladders to study in depth. Anyway, I haven’t read it in depth. It’s a bit obscure

Guess you like

Origin blog.csdn.net/m0_53590279/article/details/126419314