0
0

More than 3 years have passed since last update.

Python3.9でのPygame Zeroインストール

Posted at

最新のPython 3.9.2でPygame Zeroをインストール( pip install pgzero )したところエラーになった。

ERROR: Command errored out with exit status 1:

これはPygameの1.9.6がインストールできないため。Pygameの2.0.0を入れて、Pygame Zeroを依存関係無しでインストールするとうまくいく。

pip install pygame==2.0.0
pip install pgzero --no-deps

なお、ダウンロードしたPygameのキャッシュが残っている場合にはうまくいかないので、まずキャッシュをクリアする。

pip cache purge
0
0
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
0
0