2016-04-06 4 views
0

Ich bin El Capitan laufen, wenn ich python --version das Terminal eingeben prints Python 2.7.10, ich habe erfolgreich heruntergeladen pygame für Python 2.7.10, aber ich möchte in Python 3.5.1 zu entwickeln, ich weiß Ich kann dies tun, indem ich python3 in das Terminal eingeben, aber wie richte ich richtig pygame für diese Version von Python ein?Wie pygame für nicht Standardversion von Python herunterladen

+0

'pip3 install pygame'? Probieren Sie es aus. –

+0

Google "pygame os x python 3" resultierte in http://florian-berger.de/de/articles/installing-pygame-for-python-3-on-o-s-x/ –

+0

Ich habe das @LauroMoura aber mal probiert Ich gebe '/ usr/local/share/python3/easy_install pip' ein terminal antwortet '-bash:/usr/local/share/python3/easy_install: Keine solche Datei oder Verzeichnis' –

Antwort

1

Verwenden Sie python3.5 -mpip install pygame.

+0

Sollte es nicht' -m pip' sein von '-mpip'? –

+0

funktionieren beide. '-mpip' speichert 1 Tastendruck: D –

+0

So ist es! Ich wusste das nicht, danke. –