Installer un module (pygame)

Fermé
Thevivi84 Messages postés 115 Date d'inscription samedi 31 mai 2014 Statut Membre Dernière intervention 7 octobre 2018 - 22 mai 2017 à 14:21
Felice_ Messages postés 265 Date d'inscription mardi 25 avril 2017 Statut Membre Dernière intervention 20 juillet 2017 - 22 mai 2017 à 17:10
Bonjour,
je cherche à installer le module pygame sur pyzo, pour cela j'ai utilisé la commande "pip install pygame", dans le terminal le message suivant s'affiche :
"You are using pip version 6.0.8, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pygame
Downloading pygame-1.9.3.tar.gz (3.0MB)
WARNING, No "Setup" File Exists, Running "config.py"
Using WINDOWS configuration...
Path for SDL not found.
Too bad that is a requirement! Hand-fix the "Setup"
Path for FONT not found.
Path for IMAGE not found.
Path for MIXER not found.
Path for PNG not found.
Path for JPEG not found.
Path for PORTMIDI not found.
Path for COPYLIB_tiff not found.
Path for COPYLIB_z not found.
Path for COPYLIB_vorbis not found.
Path for COPYLIB_ogg not found.
If you get compiler errors during install, doublecheck
the compiler flags in the "Setup" file.
Continuing With "setup.py"
Error with the "Setup" file,
perhaps make a clean copy from "Setup.in".
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "C:\Users\virgi\AppData\Local\Temp\pip-build-nk5i9rff\pygame\setup.py", line 165, in <module>
extensions = read_setup_file('Setup')
File "C:\pyzo2015a\lib\distutils\extension.py", line 164, in read_setup_file
line = expand_makefile_vars(line, vars)
File "C:\pyzo2015a\lib\distutils\sysconfig.py", line 417, in expand_makefile_vars
s = s[0:beg] + vars.get(m.group(1)) + s[end:]
TypeError: Can't convert 'NoneType' object to str implicitly
Complete output from command python setup.py egg_info:




WARNING, No "Setup" File Exists, Running "config.py"

Using WINDOWS configuration...



Path for SDL not found.

Too bad that is a requirement! Hand-fix the "Setup"

Path for FONT not found.

Path for IMAGE not found.

Path for MIXER not found.

Path for PNG not found.

Path for JPEG not found.

Path for PORTMIDI not found.

Path for COPYLIB_tiff not found.

Path for COPYLIB_z not found.

Path for COPYLIB_vorbis not found.

Path for COPYLIB_ogg not found.



If you get compiler errors during install, doublecheck

the compiler flags in the "Setup" file.





Continuing With "setup.py"

Error with the "Setup" file,

perhaps make a clean copy from "Setup.in".

Traceback (most recent call last):

File "<string>", line 20, in <module>

File "C:\Users\virgi\AppData\Local\Temp\pip-build-nk5i9rff\pygame\setup.py", line 165, in <module>

extensions = read_setup_file('Setup')

File "C:\pyzo2015a\lib\distutils\extension.py", line 164, in read_setup_file

line = expand_makefile_vars(line, vars)

File "C:\pyzo2015a\lib\distutils\sysconfig.py", line 417, in expand_makefile_vars

s = s[0:beg] + vars.get(m.group(1)) + s[end:]

TypeError: Can't convert 'NoneType' object to str implicitly

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\virgi\AppData\Local\Temp\pip-build-nk5i9rff\pygame
"
, et quand j'utilise la commande "import pygame", il me ddit que le module est introuvable, que faire svp ?

PS : dans le dossier "sites-package", pygame nes't pas présent

Merci d'avance


1 réponse

Felice_ Messages postés 265 Date d'inscription mardi 25 avril 2017 Statut Membre Dernière intervention 20 juillet 2017 11
22 mai 2017 à 17:10
Bonjour,

C'est écrit au départ, tu utilises la version 6.0.8 de pip et il te dit que tu dois mettre à jour en utilisant la version 9.0.1
0