Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
3
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

@yasushiiwata

macOSにpygameをインストール

以前Macでpygame動かすのは色々めんどくさかった記憶があるのだけど、今はpip使って簡単にバイナリをインストールできるのね。拍子抜け。

使用するpythonのバージョンは3.6.1以降推奨。

$ python3 --version
Python 3.7.0
$ mkdir pygame_project
$ cd pygame_project
$ python3 -m venv venv
$ source venv/bin/activate
(venv) $ pip install pygame
Collecting pygame
  Using cached https://files.pythonhosted.org/packages/b9/89/aca02f8771727c2713c11a39c1cc295e4deb60be322be19ad7460570f978/pygame-1.9.4-cp37-cp37m-macosx_10_11_intel.whl
Installing collected packages: pygame
Successfully installed pygame-1.9.4

サンプルを起動して動作を確認。

$ python3 -m pygame.examples.aliens
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
3
Help us understand the problem. What are the problem?