Python Forum
How to install Pygame - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Game Development (https://python-forum.io/forum-11.html)
+--- Thread: How to install Pygame (/thread-6766.html)



How to install Pygame - chappie - Dec-06-2017

I downloaded and installed pygame, however, not sure how to "link" it with my IDE (pycharm) so it recognizes "import pygame" ...


RE: How to install Pygame - j.crater - Dec-06-2017

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.


RE: How to install Pygame - chappie - Dec-06-2017

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?