Problemas com Pygame [RESOLVIDO]

1. Problemas com Pygame [RESOLVIDO]

Cesar Vinicius Sforca
cesarvinici

(usa Ubuntu)

Enviado em 02/02/2017 - 20:05h

Pessoal boa noite, estou tentando instalar o pygame em um virtual env mas está dando erro, se eu executo import pygame no python 2.7 ele roda, mas se eu tento fazer o mesmo no 3.4 ele da erro.
Tentei instalar no virtualenv mas ele deu erro também. Alguém sabe o que acontece? Obrigado.

(python) cesar@Cesar-Linux:~/python$ python2.7
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
>>>

(python) cesar@Cesar-Linux:~/python$ python
Python 3.4.0 (default, Feb 2 2017, 19:34:59)
[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>
ImportError: No module named 'pygame'
>>>

(python) cesar@Cesar-Linux:~/python$ pip install pygame
Downloading/unpacking pygame
Downloading pygame-1.9.3.tar.gz (3.0MB): 3.0MB downloaded
Running setup.py (path:/home/cesar/python/python/build/pygame/setup.py) egg_info for package pygame


WARNING, No "Setup" File Exists, Running "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
/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: "freetype-config" failed!
Unable to run "sdl-config". Please make sure a development version of SDL is installed.
Complete output from command python setup.py egg_info:




WARNING, No "Setup" File Exists, Running "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

/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: "freetype-config" failed!

Unable to run "sdl-config". Please make sure a development version of SDL is installed.

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/cesar/python/python/build/pygame
Storing debug log for failure in /home/cesar/.pip/pip.log




  


2. Re: Problemas com Pygame [RESOLVIDO]

Marcos Souza
IUseLinux

(usa Slackware)

Enviado em 02/02/2017 - 23:01h

cesarvinici escreveu:

Pessoal boa noite, estou tentando instalar o pygame em um virtual env mas está dando erro, se eu executo import pygame no python 2.7 ele roda, mas se eu tento fazer o mesmo no 3.4 ele da erro.
Tentei instalar no virtualenv mas ele deu erro também. Alguém sabe o que acontece? Obrigado.

(python) cesar@Cesar-Linux:~/python$ python2.7
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
>>>

(python) cesar@Cesar-Linux:~/python$ python
Python 3.4.0 (default, Feb 2 2017, 19:34:59)
[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>
ImportError: No module named 'pygame'
>>>

(python) cesar@Cesar-Linux:~/python$ pip install pygame
Downloading/unpacking pygame
Downloading pygame-1.9.3.tar.gz (3.0MB): 3.0MB downloaded
Running setup.py (path:/home/cesar/python/python/build/pygame/setup.py) egg_info for package pygame


WARNING, No "Setup" File Exists, Running "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
/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: "freetype-config" failed!
Unable to run "sdl-config". Please make sure a development version of SDL is installed.
Complete output from command python setup.py egg_info:




WARNING, No "Setup" File Exists, Running "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

/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: "freetype-config" failed!

Unable to run "sdl-config". Please make sure a development version of SDL is installed.

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/cesar/python/python/build/pygame
Storing debug log for failure in /home/cesar/.pip/pip.log




Ta faltando dependencias... Sdl e freetype acredito.


I3 2.3Ghz , 4Gb de Ram DDR4, 1TB.
Slackware 14.2 com KDE.

"Talk is cheap, show me the code"




3. Re: Problemas com Pygame [RESOLVIDO]

Cesar Vinicius Sforca
cesarvinici

(usa Ubuntu)

Enviado em 03/02/2017 - 10:51h

Eu instalei, mas ai agora ta dando outro erro

error: command 'gcc' failed with exit status 1 







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts