Today I want to do a plane war to consolidate python syntax. I have changed my computer recently and haven’t had time to install it yet. I would like to write a blog to record it because I have made many mistakes in principle.

First, preparation

1. Python installation package 2. PIP installation package 3

PIP download source: pypi.org/simple/pip/ pygame download source: mirrors.aliyun.com/pypi/simple…

2. Start installation

1, Install Python and add environment variables to the python installation process omitted, here is the process of adding to environment variables find the python installation path and copyCopy the code

2. Add python's absolute path to the environment system variable to save and exitCopy the code

3. Install PIP. Decompress the PIP package

D:\Python>dir The volume in drive D is Data volume with serial number 4662-8122 D:\Python... 1,197,370 pip-9.0.1.tar.gz... D:\Python>tar xf pip-9.0.1.tar.gz D:\Python> CD pip-9.0.1 D:\Python\pip-9.0.1>dir... 2016/11/07 02:49 2,934 setup.py... D: \ Python \ PIP - 9.0.1 > Python setup. Py install... . . Installed D :\python\lib\site-packages\pip-9.0.1-py3.8.egg Processing dependencies for PIP ==9.0.1 Finished Processing Dependencies for PIP = = 9.0.1Copy the code

Find the PIP installation location Adding environment variables

C:\Users\Jack> PIP Usage: PIP <command> [options] Commands: install Install packages. download Download packages. uninstall Uninstall packages. freeze Output installed packages in requirements format. list List installed packages. show Show information about installed packages. check Verify installed packages have compatible dependencies. search Search PyPI for packages. wheel Build wheels from your requirements. hash Compute hashes of package archives. completion A helper command used for command completion. help Show help for commands. ............... . D:\Python> Python pip-20.1.1-py2.py3-none-any. WHL/PIP install pip-20.1.1-py2.py3-none-any. WHL/PIP install pip-20.1.1-py2.py3-none-any. WHL/PIPCopy the code

PIP installation complete!

Install Pygame

Check your python version. I am 3.8, so download 3.8. Consider the first download first, and the second if the installation fails

2. Move to the Python installation directory Install PyGame with PIP

D:\Python>dir ... . 2020/06/26 17:442,424,256 pygame-1.9.6-cp38-cp38-win32.whl... . D:\Python>D:\Python> PIP install pygame-1.9.6-cp38-cp38-win32.whl Processing D:\Python \pygame-1.9.6-cp38-cp38-win32.whl Installing COLLECTED Packages: Pygame Successfully installed PyGame -1.9.6Copy the code

Pygame installed successfully! Hurry up and play games together!