Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIP cannot install Pygame
#1
Hi, i am a newbee. I tried to install pygame with pip but it seems can't work. The process only stop at notification of "satisfied requirement" but without processing the installation it self. The command on cmd as below. Any help would be appreciated. thx

C:\Users\bsgluser\AppData\Local\Programs\Python\Python37-32\Scripts>python
sion
Python 3.7.4

C:\Users\bsgluser\AppData\Local\Programs\Python\Python37-32\Scripts>pip --
n
pip 19.2.3 from c:\users\bsgluser\appdata\local\programs\python\python37-3
site-packages\pip (python 3.7)

C:\Users\bsgluser\AppData\Local\Programs\Python\Python37-32\Scripts>pip in
pygame-1.9.6-cp37-cp37m-win32.whl
Requirement already satisfied: pygame==1.9.6 from file:///C:/Users/bsgluse
ata/Local/Programs/Python/Python37-32/Scripts/pygame-1.9.6-cp37-cp37m-win3
in c:\users\bsgluser\appdata\local\programs\python\python37-32\lib\site-pa
(1.9.6)

C:\Users\bsgluser\AppData\Local\Programs\Python\Python37-32\Scripts>
Reply
#2
it says pygame is already installed

see our tutorial (look at step 6) to confirm it is installed
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
(Sep-02-2019, 07:45 PM)buran Wrote: it says pygame is already installed

see our tutorial (look at step 6) to confirm it is installed

Buran, Thanks for reply. But it seems does not install yet. I type "import pygame" in IDLE and the result like below :

Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> import pygame
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import pygame
File "C:\Users\bsgluser\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pygame\__init__.py", line 120, in <module>
from pygame.base import *
ModuleNotFoundError: No module named 'pygame.base'
>>>
Reply
#4
It says pygame was already installed. In what method did you install that version? By any chance did you use a wheel from here?

Also are you using Anaconda?

It could also very well be that python3.7.4 is not yet supported by pygame yet.
Recommended Tutorials:
Reply
#5
(Sep-02-2019, 09:54 PM)metulburr Wrote: It says pygame was already installed. In what method did you install that version? By any chance did you use a wheel from here?

Also are you using Anaconda?

It could also very well be that python3.7.4 is not yet supported by pygame yet.

Yes, i use wheel from your link above. But how could i get "FileNotFoundError" when i test it?
Reply
#6
(Sep-02-2019, 09:57 PM)Amaly84 Wrote: Yes, i use wheel from your link above.
Then i would first uninstall that and first try to install it via pip before anything else.
(Sep-02-2019, 09:57 PM)Amaly84 Wrote: But how could i get "FileNotFoundError" when i test it?
Those are not official repos. Which means anything could happen. They are pre-compiled binaries from a 3rd source. Usually they are good, but that is not true always. They could in theory have a virus in them for all you know. The official pygame is downloaded via pip in which auto finds the correct one for you. Or you can download it directly from pypi. pip install pygame

So i would uninstall that pygame you have currently, and try again but using pip install pygame. Then report back if you get an error or not, wand what that error is.
Recommended Tutorials:
Reply
#7
(Sep-02-2019, 10:53 PM)metulburr Wrote:
(Sep-02-2019, 09:57 PM)Amaly84 Wrote: Yes, i use wheel from your link above.
Then i would first uninstall that and first try to install it via pip before anything else.
(Sep-02-2019, 09:57 PM)Amaly84 Wrote: But how could i get "FileNotFoundError" when i test it?
Those are not official repos. Which means anything could happen. They are pre-compiled binaries from a 3rd source. Usually they are good, but that is not true always. They could in theory have a virus in them for all you know. The official pygame is downloaded via pip in which auto finds the correct one for you. Or you can download it directly from pypi. pip install pygame

So i would uninstall that pygame you have currently, and try again but using pip install pygame. Then report back if you get an error or not, wand what that error is.

It solved. I uninstalled the pygame first using "pip3 uninstall pygame", and then i installed back using "pip3 install pygame".

Thank you all for helps..
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't get pygame to install djwilson0495 13 9,979 Dec-07-2020, 01:30 PM
Last Post: djwilson0495
  Trying to install pygame Mac OS x high sierra giladal 2 2,710 Oct-18-2020, 09:27 PM
Last Post: nilamo
  Error to install pygame skp 1 3,454 Apr-14-2020, 05:17 PM
Last Post: joe_momma
  pip install pygame choking on SDL dependency sneakyimp 20 12,644 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 install Pygame chappie 2 3,386 Dec-06-2017, 10:47 PM
Last Post: chappie
  How to begin coding for game making [Install pygame on mac] mattkrebs 2 4,907 Apr-02-2017, 10:57 AM
Last Post: machrider
  [split] permission error on pygame install pyteach 7 8,127 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