LoginSignup
3
6

More than 5 years have passed since last update.

macOS Sierra + Python + Pygameでキー入力出来る環境を構築する

Posted at

環境

  • macOS Sierra(10.12.6)
  • Python(3.6.2)
  • Pygame(1.9.3)

初回

pythonのインストール、仮想環境作成、pygameのインストール。
※homebrewはインストール済みであること

$ brew install python3
$ python3 -m venv venv
$ source myenv/bin/activate
(venv) $ pip install pygame
(venv) $ deactivate 

毎回

$ source venv/bin/activate
(venv) $ python hoge.py
(venv) $ deactivate 

注意点

pyenvのpythonだと動かない

参考文献

3
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
6