Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to install Pygame
#1
I downloaded and installed pygame, however, not sure how to "link" it with my IDE (pycharm) so it recognizes "import pygame" ...
Reply
#2
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.
Reply
#3
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?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't get pygame to install djwilson0495 13 9,982 Dec-07-2020, 01:30 PM
Last Post: djwilson0495
  Trying to install pygame Mac OS x high sierra giladal 2 2,714 Oct-18-2020, 09:27 PM
Last Post: nilamo
  Error to install pygame skp 1 3,455 Apr-14-2020, 05:17 PM
Last Post: joe_momma
  PIP cannot install Pygame Amaly84 6 9,649 Sep-04-2019, 07:59 PM
Last Post: Amaly84
  pip install pygame choking on SDL dependency sneakyimp 20 12,647 Jan-23-2019, 12:36 PM
Last Post: metulburr
  pip can't install pygame SheeppOSU 1 9,428 Dec-08-2018, 08:20 PM
Last Post: snippsat
  How to begin coding for game making [Install pygame on mac] mattkrebs 2 4,908 Apr-02-2017, 10:57 AM
Last Post: machrider
  [split] permission error on pygame install pyteach 7 8,129 Jan-23-2017, 11:00 PM
Last Post: pyteach

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020