[PYTHON] Let's install box2d-py with Windows 10 environment pip

What is box2d-py?

This library is used in the OpenAI Gym package, which is often used for reinforcement learning of Python.

https://pypi.org/project/box2d-py/

Box2d-py Windwos installation issue

Installing this package in a Windows environment can be a daunting task. I also suffered from the following error:

swig.exe -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir library\Box2D -keyword -w511 -D_SWIG_KWARGS -o Box2D\Box2D_wrap.cpp Box2D\Box2D.i
    Box2D\Box2D.i(44) : Error: Unknown directive '%exception'.

Installing with conda seems to be the quickest way to avoid problems on Windows, but it's a bit of a hurdle for me who doesn't use conda. I created a Wheel file so that it can be easily installed with pip. Please use this wheel file before installing gym [all] etc.

Install with wheel file

Download the wheel file for your Python environment and install box2d-py with the wheel file.

https://github.com/kitfactory/box2d-py-wheel

> pip install box2d_py-2.3.8-cp38-cp38m-win_amd64.whl

> pip install box2d_py-2.3.8-cp37-cp37m-win_amd64.whl

> pip install box2d_py-2.3.8-cp36-cp36m-win_amd64.whl

Recommended Posts

Let's install box2d-py with Windows 10 environment pip
Until you install TensorFlow-GPU with pip in Windows environment
Pip install (Windows) under Proxy environment
[Python Windows] pip install with Python version
Install Jupiter Notebook on Windows with pip in proxy environment
Error with pip install
Install scikit.learn with pip
Install Python environment with Anaconda
venv environment with windows powershell
Pip install in proxy environment
Install github repository with pip
Let's get started with Python ~ Building an environment on Windows 10 ~
Install Python 2.7.9 and Python 3.4.x with pip.
Pip install --ugrade pip fails on Windows
(Windows10) Install Linux environment and gnuplot.
Install python2.7 on windows 32bit environment
Permission denied with pip install pyopenssl
How to install mysql-connector with pip3
UnicodeDecodeError occurs in pip (Windows environment)
Install easy_install and pip on windows
Install packages that need to be compiled with Python3 with pip [Windows]
Install pip in Serverless Framework and AWS Lambda with Python environment
SSL certificate related with pip install? Error
Building a Python 3.6 environment with Windows + PowerShell
I want to pip install with PythonAnywhere
Install by specifying the version with pip
Install Python package management tool pip (Windows)
Let's get along with Python # 0 (Environment construction)
I can't install the package with pip.
How about creating a virtual environment with Anaconda and doing pip install?
What to do if you can't install with pip in babun environment
I can't install Dask with pip on Ubuntu
sudo pip install
python windows environment
Avoiding "'ascii' codec can't decode" with pip install
Python (Windows 10) Virtual Environment / Package with VS Code
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
Install pip and pandas with Ubuntu or VScode
Install Python 3.5.1 + numpy + scipy + α in Windows environment
Install easy_install (Windows)
Image Processing with Python Environment Setup for Windows
Eliminates SSL error when PIP Install on Windows.
Install ZIP version Python and pip on Windows 10
Steps to install your own library with pip
Make it easy to install the ROS2 development environment with pip install on Python venv
pip install ○○○ error Command errored out with exit status 1:
Let's make dependency management with pip a little easier
Python development environment with Windows + Anaconda3 + Visual Studio Code
Create an OpenAI Gym environment with bash on Windows 10
Python development environment with Windows + Python + PipEnv + Visual Studio Code
Install Ubuntu 20.04 with GUI and prepare the development environment
A memorandum when an error occurs with pip install
Install tweepy with pip and use it for API 1.1
Install pip on Mavericks
PIL installation with pip
Install pip, pyenv, BeautifulSoup4
Installing packages with pip3
python windows environment construction
How to install pip
Use pip with MSYS2
No more dual boot or VM! Let's build a Linux environment with WSL2 & Windows Terminal [WSL2]