Python Forum
PIP cannot 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: PIP cannot install Pygame (/thread-20850.html)



PIP cannot install Pygame - Amaly84 - Sep-02-2019

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>


RE: PIP cannot install Pygame - buran - Sep-02-2019

it says pygame is already installed

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


RE: PIP cannot install Pygame - Amaly84 - Sep-02-2019

(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'
>>>


RE: PIP cannot install Pygame - metulburr - Sep-02-2019

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.


RE: PIP cannot install Pygame - Amaly84 - Sep-02-2019

(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?


RE: PIP cannot install Pygame - metulburr - Sep-02-2019

(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.


RE: PIP cannot install Pygame - Amaly84 - Sep-04-2019

(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..