Last active
November 18, 2019 23:34
-
-
Save dpfrakes/c846eb4fbaa85d3a64ac6f91222636ac to your computer and use it in GitHub Desktop.
Install Box2D
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Install Box2D from source | |
# Mac | |
brew install swig | |
# Linux | |
sudo apt-get install build-essential python-dev swig | |
# Download source | |
cd ~/dev | |
git clone https://github.com/pybox2d/pybox2d | |
# Install via pip | |
pip install ~/dev/pybox2d | |
# Build and install globally | |
cd ~/dev/pybox2d | |
python setup.py build | |
python setup.py install | |
# Use python3 explicitly to install to /usr/lib/python3.x/dist-packages/ | |
cd ~/dev/pybox2d | |
python3 setup.py install | |
# If using a virtualenv, create the virtualenv using site packages | |
# https://stackoverflow.com/a/19459977 | |
virtualenv --system-site-packages ~/.virtualenvs/my_new_virtualenv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment