Bottom Page

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>
Quote
#2
it says pygame is already installed

see our tutorial (look at step 6) to confirm it is installed
metulburr likes this post
Quote
#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'
>>>
Quote
#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.
Quote
#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?
Quote
#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.
Quote
#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..
metulburr and nilamo like this post
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  pip install pygame choking on SDL dependency sneakyimp 20 1,685 Jan-23-2019, 12:36 PM
Last Post: metulburr
  pip can't install pygame SheeppOSU 1 1,185 Dec-08-2018, 08:20 PM
Last Post: snippsat
  How to install Pygame chappie 2 899 Dec-06-2017, 10:47 PM
Last Post: chappie
  How to begin coding for game making [Install pygame on mac] mattkrebs 2 2,098 Apr-02-2017, 10:57 AM
Last Post: machrider
  [split] permission error on pygame install pyteach 7 3,247 Jan-23-2017, 11:00 PM
Last Post: pyteach

Forum Jump:


Users browsing this thread: 1 Guest(s)