# Python Bindings for Raylib 3.x New CFFI API static bindings. Faster, fewer bugs and easier to maintain than ctypes. ### Advert [RetroWar: 8-bit Party Battle](https://store.steampowered.com/app/664240/RetroWar_8bit_Party_Battle/?git) is out now. Defeat up to 15 of your friends in a tournament of 80s-inspired retro mini games. # Install ## Install from Pypi (easiest) **Windows 10 (64 bit): Python 3.6 - 3.8** **MacOS: Python 3.6 - 3.8** **Linux (Ubuntu 16.04+): Python 3.6 - 3.8** We distribute a statically linked Raylib library, install from Pypi. pip3 install raylib ## Install from github The version on Pypi may not always be up to date. If you want to test the very latest version, clone the git repo and make a symlink to the `raylib` directory in your current project directory. ## Build from source If you're a different version of Python, or a Linux with incompatible libraries then you can either *use the dynamic binding only* or else you will have to build from source. Clone this repo including submodules so you get correct version of Raylib. git clone --recurse-submodules https://github.com/electronstudio/raylib-python-cffi Build and install Raylib from the raylib-c directory. cd raylib-python-cffi/raylib-c mkdir build cd build cmake -DWITH_PIC=on .. sudo make install Make a patched version of raylib header. cd ../../raylib cp raylib.h raylib_modified.h patch -p0