Pyxel environment construction (Mac)

I will summarize the procedure for building an environment for a retro game engine called Pyxel.

It is a commentary for Mac.

What is Pyxel

A game engine that allows you to develop retro-style games in Python. It is published on github, so please see here for details. https://github.com/kitao/pyxel

Pyxel environment construction

I will explain in this order.

--Installing Homebrew --Install Python3 --Installing Pyxel

step 1

To use Pyxel, you need to install Python3. (Python installed by default on Mac is an old version, and Pyxel does not work.) And it is convenient to use Homebrew to install Python3, so I will install it.

First, open a standard Mac application terminal and enter the code below to run it.

brew -v

If the execution result is as below, homebrew is already installed. Proceed to step 4

Homebrew 2.5.5
Homebrew/homebrew-core

If the execution result is as below, Homebrew is not installed. Proceed to step 2.

command not found

If the execution result is as below, Homebrew is not installed correctly. Proceed to step 3.

Homebrew 2.5.5
Homebrew/homebrew-core N/A

Step 2

Run the code below. If any window appears, follow the on-screen instructions to install. Also, if press RETURN ... is displayed, enter the Enter key, and if password: is displayed, enter the login password of your personal computer.

xcode-select --install

When you're done, then run the code below. It takes a lot of time. As before, enter the Enter key when press RETURN ... is displayed, and enter the login password of your personal computer when password: is displayed.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

When you're done, go to Step 4.

Step 3

Run the code below.

brew update-reset

When you're done, then run the code below. It takes a lot of time. Enter the Enter key when press RETURN ・ ・ ・ is displayed, and enter the login password of your personal computer when password: is displayed.

brew doctor

When you're done, go to Step 4.

Step 4

I think Homebrew is installed, so I will proceed with the installation of Python3.

Run the code below. It will take some time.

brew install python3 gcc sdl2 sdl2_image gifsicle

When you are finished, proceed to Step 5.

Step 5

I think Python3 is installed, so I will install Pyxel at the end.

Run the code below.

pip3 install -U pyxel

__ Now you are ready to make a retro game with Pyxel! !! !! __

Summary

thank you for your hard work! !! I think it took a while, but now you should be able to use Pyxel. I think there are many articles on how to use Pyxel, so please check it out yourself!

Thank you for reading until the end! I would be grateful if you could point out any mistakes!

reference

Recommended Posts

Pyxel environment construction (Mac)
Mac environment construction Python
Python environment construction For Mac
Ansible environment construction For Mac
Mac + Eclipse (PyDev) + Django environment construction
Anaconda environment construction on Mac (2018 version)
I checked Mac Python environment construction
Environment construction of python3.8 on mac
Python3 TensorFlow for Mac environment construction
DeepIE3D environment construction
Emacs-based environment construction
Linux environment construction
Python environment construction
Environment construction (python)
django environment construction
CodeIgniter environment construction
python environment construction
Python --Environment construction
Python environment construction
Golang environment construction
python environment construction
Word2vec environment construction
Mac OS X Mavericks 10.9.5 Development environment construction
Mac OS X Yosemite 10.10 Development environment construction
Mac OS X development environment construction memo
Python3 TensorFlow environment construction (Mac and pyenv virtualenv)
Environment construction: GCP + Docker
Django project environment construction
python windows environment construction
Python explosive environment construction starting from zero (Mac)
ConoHa environment construction memo
PyData related environment construction
Python development environment construction
Mac development environment construction (Ansible + Serverspec + Travis CI)
python2.7 development environment construction
grip environment construction onCentOS6.5
Anaconda environment construction memo
Golang environment construction [goenv]
Python environment construction @ Win7
Environment construction with anyenv + pyenv (migrate from pyenv only (Mac))
[Ubuntu 18.04] Tensorflow 2.0.0-GPU environment construction
Python + Anaconda + Pycharm environment construction
About Linux environment construction (CentOS)
PyTorch C ++ (LibTorch) environment construction
Pyramid + mongodb environment on Mac
Anaconda environment construction on CentOS7
Django development environment construction memo
First LAMP environment construction (Linux)
Python environment construction (Windows10 + Emacs)
CI environment construction ~ Python edition ~
[Memo] Construction of cygwin environment
ML environment construction with Miniconda
Anaconda3 python environment construction procedure
Docker + Django + React environment construction
Anaconda3 × Pycharm environment construction memo
Python environment construction and TensorFlow
NumPy and matplotlib environment construction
Machine learning environment construction macbook 2021
Python environment construction under Windows7 environment
[MEMO] [Development environment construction] Python
Ubuntu14.04 + GPU + TensorFlow environment construction