win10 python3.7 install pygame

win10 python3.7 install pygame

1. Download module with corresponding version python

Download pygame: https://pypi.org/project/pygame/#files[Image dump the chain fails, the source station may have security chain mechanism, it is recommended to save the picture down uploaded directly (img-bhS8hTdi-1584407586763) (./ QQ screenshot 20200317090204.png)]

2. In the directory where the downloaded file, open a command line

I am here to put the file in the root directory of the python installation
installed:pip install just downloaded the file name
注: If you want to be able to use pip instruction anywhere, you need to configure the environment variables python
Here Insert Picture Description
Here Insert Picture Description

3. Install a successful test

Open pygame built-in test game:
Python -m pygame.examples.aliens
Here Insert Picture Description

Published 45 original articles · won praise 7 · views 2286

Guess you like

Origin blog.csdn.net/qq_43616898/article/details/104914288