Bonjour,
J'ai installé python via homebrew l'installation de wxPython s'est passée sans soucis.
Par contre Pygame ça bloque. J'ai bien installé SDL.
Mais il ne veut pas m'installer Pygame 2.0.1 qui est la dernière version ni la 2.0.0 mais seulement la 1.9.6 or le projet auquel je participe utilise Pygame 2 du coup ça ne marche pas.
Voici ce que l'installation me retourne :
Collecting pygame
Using cached pygame-2.0.1.tar.gz (5.5 MB)
ERROR: Command errored out with exit status 1:
command: /opt/homebrew/opt/
[email protected]/bin/python3.9 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/w8/n1kdqpdn6_q0893qnv348s580000gn/T/pip-install-6mir4cqu/pygame_142bfabb2faa435da22f87624750f4cd/setup.py'"'"';
file='"'"'/private/var/folders/w8/n1kdqpdn6_q0893qnv348s580000gn/T/pip-install-6mir4cqu/pygame_142bfabb2faa435da22f87624750f4cd/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(
file) if os.path.exists(
file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code,
file, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/w8/n1kdqpdn6_q0893qnv348s580000gn/T/pip-pip-egg-info-u1qrzt0i
cwd: /private/var/folders/w8/n1kdqpdn6_q0893qnv348s580000gn/T/pip-install-6mir4cqu/pygame_142bfabb2faa435da22f87624750f4cd/
Complete output (27 lines):
WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using Darwin configuration...
/bin/sh: sdl2-config: command not found
/bin/sh: sdl2-config: command not found
/bin/sh: sdl2-config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/w8/n1kdqpdn6_q0893qnv348s580000gn/T/pip-install-6mir4cqu/pygame_142bfabb2faa435da22f87624750f4cd/setup.py", line 318, in <module>
buildconfig.config.main(AUTO_CONFIG)
File "/private/var/folders/w8/n1kdqpdn6_q0893qnv348s580000gn/T/pip-install-6mir4cqu/pygame_142bfabb2faa435da22f87624750f4cd/buildconfig/config.py", line 221, in main
deps = CFG.main(**kwds)
File "/private/var/folders/w8/n1kdqpdn6_q0893qnv348s580000gn/T/pip-install-6mir4cqu/pygame_142bfabb2faa435da22f87624750f4cd/buildconfig/config_darwin.py", line 131, in main
[DependencyProg('SDL', 'SDL_CONFIG', 'sdl2-config', '2.0', ['sdl'])],
File "/private/var/folders/w8/n1kdqpdn6_q0893qnv348s580000gn/T/pip-install-6mir4cqu/pygame_142bfabb2faa435da22f87624750f4cd/buildconfig/config_unix.py", line 39, in
init
self.ver = config[0].strip()
IndexError: list index out of range
---
For help with compilation see:
https://www.pygame.org/wiki/MacCompile
To contribute to pygame development see:
https://www.pygame.org/contribute.html
---
----------------------------------------
WARNING: Discarding
https://files.pythonhosted.org/pack...49933b206778747ef1802bd3d526aca45ed77141e4001 (from
https://pypi.org/simple/pygame/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached pygame-2.0.0.tar.gz (5.5 MB)
ERROR: Command errored out with exit status 1:
command: /opt/homebrew/opt/
[email protected]/bin/python3.9 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/w8/n1kdqpdn6_q0893qnv348s580000gn/T/pip-install-6mir4cqu/pygame_b8f2e42671424b84b18377944477dc5e/setup.py'"'"';
file='"'"'/private/var/folders/w8/n1kdqpdn6_q0893qnv348s580000gn/T/pip-install-6mir4cqu/pygame_b8f2e42671424b84b18377944477dc5e/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(
file) if os.path.exists(
file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code,
file, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/w8/n1kdqpdn6_q0893qnv348s580000gn/T/pip-pip-egg-info-x9rp8x3u
cwd: /private/var/folders/w8/n1kdqpdn6_q0893qnv348s580000gn/T/pip-install-6mir4cqu/pygame_b8f2e42671424b84b18377944477dc5e/
Complete output (27 lines):
WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using Darwin configuration...
/bin/sh: sdl2-config: command not found
/bin/sh: sdl2-config: command not found
/bin/sh: sdl2-config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/w8/n1kdqpdn6_q0893qnv348s580000gn/T/pip-install-6mir4cqu/pygame_b8f2e42671424b84b18377944477dc5e/setup.py", line 318, in <module>
buildconfig.config.main(AUTO_CONFIG)
File "/private/var/folders/w8/n1kdqpdn6_q0893qnv348s580000gn/T/pip-install-6mir4cqu/pygame_b8f2e42671424b84b18377944477dc5e/buildconfig/config.py", line 221, in main
deps = CFG.main(**kwds)
File "/private/var/folders/w8/n1kdqpdn6_q0893qnv348s580000gn/T/pip-install-6mir4cqu/pygame_b8f2e42671424b84b18377944477dc5e/buildconfig/config_darwin.py", line 131, in main
[DependencyProg('SDL', 'SDL_CONFIG', 'sdl2-config', '2.0', ['sdl'])],
File "/private/var/folders/w8/n1kdqpdn6_q0893qnv348s580000gn/T/pip-install-6mir4cqu/pygame_b8f2e42671424b84b18377944477dc5e/buildconfig/config_unix.py", line 39, in
init
self.ver = config[0].strip()
IndexError: list index out of range
---
For help with compilation see:
https://www.pygame.org/wiki/MacCompile
To contribute to pygame development see:
https://www.pygame.org/contribute.html
---
----------------------------------------
WARNING: Discarding
https://files.pythonhosted.org/pack...81b02173fd894d87d2f85ecfd6aa7d5ece73c6ef501e9 (from
https://pypi.org/simple/pygame/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached pygame-1.9.6-cp39-cp39-macosx_11_0_arm64.whl
Installing collected packages: pygame
Successfully installed pygame-1.9.6
Je ne comprends pas tout là dedans...
Y aurait-il quelque chose à faire ?
Merci !