Wie installiere ich Pygame in Python3.8? [Duplikat]

Aug 18 2020

Sammeln von Pygame mit zwischengespeichertem Pygame-1.9.6.tar.gz (3,2 MB) FEHLER: Befehl mit Exit-Status 1 fehlgeschlagen: Befehl: / usr / bin / python3 -c 'import sys, setuptools, tokenize; sys.argv [0] = '"'" '/tmp/pip-install-lva53fx4/pygame/setup.py' "'"'; file = '"'" '/ tmp / pip-install-lva53fx4 / pygame / setup.py' "'"'; f = getattr (tokenize, '"'" 'open' "'"' ', open) ( Datei ) ; code = f.read (). replace ('"'" '\ r \ n' "'",' "'" \ n' "'"'); f.close (); exec (compile ( Code, Datei , '"'" 'exec' "'"')) 'ei_info --egg-base / tmp / pip-install-lva53fx4 / pygame / pip-ei-info cwd: / tmp / pip-install-lva53fx4 / pygame / Vollständige Ausgabe (29 Zeilen):

WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using UNIX configuration...

/bin/sh: 1: sdl-config: not found
/bin/sh: 1: sdl-config: not found
/bin/sh: 1: sdl-config: not found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
/bin/sh: 1: freetype-config: not found
/bin/sh: 1: freetype-config: not found
/bin/sh: 1: freetype-config: not found

Hunting dependencies...
WARNING: "sdl-config" failed!
WARNING: "pkg-config freetype2" failed!
WARNING: "freetype-config" failed!
Unable to run "sdl-config". Please make sure a development version of SDL is installed.
----------------------------------------

FEHLER: Befehl mit Exit-Status 1 fehlgeschlagen:

Antworten

Hubert Aug 18 2020 at 13:50

Für diesen Moment gibt es keine offizielle Version. Es gibt eine Entwicklerversion:

pip install pygame==2.0.0.dev6

aber ich empfehle Ihnen, zu 3.7 zurückzukehren und zu warten.

shyam_gupta Aug 18 2020 at 14:02

Benutze das sudo apt-get install python3-pygame