Windows10 system installation Pygame

Pygame recent study by World War II aircraft development, a sum of classic
although Pygame has been successfully installed on Ubuntu, but could not help but have an idea, why try Win10 installation.

Note: The following command taken directly ctrl + c and paste in win10 cmd in the command line Enter the line

1, you can upgrade at pip (installation tool)

python -m pip install -U pip 

2, by mounting pip installation tool pygame

python -m pip install pygame 

No need to specify pygame version, the system will automatically select the line with your version.
3, to test whether the installation is successful

import pygame 

Note: To enter commands at the Python import pygame


After this installation is successful, but when I use has gone wrong.
Pygame module import Pycharm in unsuccessful, PyCharm Import pygame appears error: No module named 'pygame'
The following will explain how to solve this problem:
first file -> settings -> Project :( your project name) -> project interpreter
then: addHere Insert Picture Description

The figure then beat up the two Gogo, OK, and the rest is waiting for your Pycharm react, Here Insert Picture Description
well, I'm just a white, written to commemorate the excitement of times to do to solve the problem.

Released six original articles · won praise 4 · Views 7244

Guess you like

Origin blog.csdn.net/qq_32939413/article/details/86564451