Pygame - Pycharm

1. Pygame - Pycharm

jorge moura
jotaeme

(usa Ubuntu)

Enviado em 16/07/2020 - 21:25h

Boa noite amigos do Vivaolinux. Estou iniciando no estudo da programação Python e estou me deparando com um problema que não consigo resolver apesar de já ter pesquisado vários sites e tentado vários comandos no terminal. Quando tento instalar o Pygame no Pycharm dá um erro. Abaixo coloco o erro mostrado:

Proposed solution:
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at '/usr/bin/python3' .
Collecting pygame
Using cached pygame-1.9.6.tar.gz (3.2 MB)

ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pycharm-packaging/pygame/setup.py'"'"'; __file__='"'"'/tmp/pycharm-packaging/pygame/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pycharm-packaging/pygame/pip-egg-info
cwd: /tmp/pycharm-packaging/pygame/
Complete output (35 lines):


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


Hunting dependencies...
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
WARNING: "pkg-config freetype2" failed!
/bin/sh: 1: freetype-config: not found
/bin/sh: 1: freetype-config: not found
/bin/sh: 1: freetype-config: not found
WARNING: "freetype-config" failed!
SDL : found 1.2.15
FONT : not found
IMAGE : found
MIXER : not found
PNG : found
JPEG : found
SCRAP : found
PORTMIDI: not found
PORTTIME: not found
FREETYPE: not found
Missing dependencies
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Se alguém puder dar uma ajuda ficarei muito grato.



  


2. Re: Pygame - Pycharm

Adriano Christi
ACMM

(usa Ubuntu)

Enviado em 20/07/2020 - 02:34h

Eu já tive problemas na instalação do Pyame no Linux e consegui resolver assim:

sudo apt install git python3-dev python3-setuptools python3-numpy python3-opengl \
libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev \
libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev \
libtiff5-dev libx11-6 libx11-dev fluid-soundfont-gm timgm6mb-soundfont \
xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic fontconfig fonts-freefont-ttf libfreetype6-dev/
Espero que ajude.

Guns don't kill people. People kill people.


3. Instalaçãi do Pygame

jorge moura
jotaeme

(usa Ubuntu)

Enviado em 22/07/2020 - 20:03h

Dei o comando sugerido mas infelizmente não funcionou no Ubuntu 20.04. Resolvi tentar instalar o Pycharm no windows e funcionou????!!! Agradeço a boa vontade. Abraços






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts