Python Forum

Full Version: How to install Pygame
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I downloaded and installed pygame, however, not sure how to "link" it with my IDE (pycharm) so it recognizes "import pygame" ...
Make sure your project uses same interpreter/environment as the one in which you installed pygame.
Go to "File" -> "Settings (projectname)" -> "Project interpreter"
There you should see list of installed packages with the interpreter you are using.
From there you can easily change to a different interpreter or create a virtual environment - click the wheel icon to the right of current interpreter. Or install a package - click green + icon to the right of packages list.
1. installed pygame to c:/pythonx
2. clicked the green + icon to add package (it was not listed as an installed packed, only the python 3.4...package is)

*not sure which file to select from pythonx dir when browsing after clicking the + icon?