Seite 1 von 1

pygame installeiern

Verfasst: Dienstag 31. März 2020, 13:45
von JakobDev
Ich habe pygame per pip installiert, aber es lässt sich nicht importieren. Auch ein Neuinstallieren hilft nicht.

Code: Alles auswählen

jakob@Pluto:~$ sudo -H pip install pygame
Collecting pygame
  Downloading pygame-1.9.6-cp35-cp35m-manylinux1_x86_64.whl (11.4 MB)
     |████████████████████████████████| 11.4 MB 90 kB/s 
Installing collected packages: pygame
Successfully installed pygame-1.9.6
jakob@Pluto:~$ python
Python 3.8.2 (default, Mar 16 2020, 13:13:37) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pygame'
>>> 

Re: pygame installeiern

Verfasst: Dienstag 31. März 2020, 13:47
von __deets__
Sieht so aus als ob du fuer Python 3.5 installierst, und dann probierst mit python3.8 zu spielen. Nimm

python3.8 -mpip install pygame

und schau ob's besser wird.