Como faço para instalar o pygame em python3.8? [duplicado]

Aug 18 2020

Coletando pygame usando cached pygame-1.9.6.tar.gz (3.2 MB) ERRO: Comando com erro de saída com status de saída 1: command: / usr / bin / python3 -c 'import sys, setuptools, tokenize; sys.argv [0] = '"'" '/tmp/pip-install-lva53fx4/pygame/setup.py' "'"'; arquivo = '"'" '/ tmp / pip-install-lva53fx4 / pygame / setup.py' "'"'; f = getattr (tokenize, '"'" 'abrir' "'"', abrir) ( arquivo ) ; code = f.read (). replace ('"'" '\ r \ n' "'"', '"'" '\ n' "'"'); f.close (); exec (compilar ( código, arquivo , '"'" 'exec' "'"')) 'egg_info --egg-base / tmp / pip-install-lva53fx4 / pygame / pip-egg-info cwd: / tmp / pip-install-lva53fx4 / pygame / Saída completa (29 linhas):

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

ERRO: Comando com erro com status de saída 1:

Respostas

Hubert Aug 18 2020 at 13:50

de momento não existe uma versão oficial. Existe uma versão dev:

pip install pygame==2.0.0.dev6

mas eu recomendo que você volte para 3.7 e espere.

shyam_gupta Aug 18 2020 at 14:02

Usa isto sudo apt-get install python3-pygame