pygame installeiern

Probleme bei der Installation?
Antworten
Benutzeravatar
JakobDev
User
Beiträge: 63
Registriert: Mittwoch 17. Juli 2019, 17:20

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'
>>> 
__deets__
User
Beiträge: 14545
Registriert: Mittwoch 14. Oktober 2015, 14:29

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