I can not install box2d-py
Hello,
I tried to install box2d-py. But I came across on that error :
Collecting box2d-py Using cached box2d-py-2.3.8.tar.gz (374 kB) Building wheels for collected packages: box2d-py Building wheel for box2d-py (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'c:\\users\lucas\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\lucas\AppData\Local\Temp\pip-install-m9y0ebu8\box2d-py_968d0f93ddd24019be996ebc65f9b54d\setup.py'"'"'; file='"'"'C:\Users\lucas\AppData\Local\Temp\pip-install-m9y0ebu8\box2d-py_968d0f93ddd24019be996ebc65f9b54d\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\lucas\AppData\Local\Temp\pip-wheel-i_jbf4b2' cwd: C:\Users\lucas\AppData\Local\Temp\pip-install-m9y0ebu8\box2d-py_968d0f93ddd24019be996ebc65f9b54d
Complete output (16 lines): Using setuptools (version 41.2.0). running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\Box2D copying library\Box2D\Box2D.py -> build\lib.win-amd64-3.7\Box2D copying library\Box2D_init.py -> build\lib.win-amd64-3.7\Box2D creating build\lib.win-amd64-3.7\Box2D\b2 copying library\Box2D\b2_init.py -> build\lib.win-amd64-3.7\Box2D\b2 running build_ext building 'Box2D._Box2D' extension swigging Box2D\Box2D.i to Box2D\Box2D_wrap.cpp 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 error: command 'swig.exe' failed: No such file or directory
ERROR: Failed building wheel for box2d-py Running setup.py clean for box2d-py Failed to build box2d-py Installing collected packages: box2d-py Running setup.py install for box2d-py ... error ERROR: Command errored out with exit status 1: command: 'c:\\users\lucas\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\lucas\AppData\Local\Temp\pip-install-m9y0ebu8\box2d-py_968d0f93ddd24019be996ebc65f9b54d\setup.py'"'"'; file='"'"'C:\Users\lucas\AppData\Local\Temp\pip-install-m9y0ebu8\box2d-py_968d0f93ddd24019be996ebc65f9b54d\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\lucas\AppData\Local\Temp\pip-record-jdw1u6am\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\\users\lucas\appdata\local\programs\python\python37\Include\box2d-py' cwd: C:\Users\lucas\AppData\Local\Temp\pip-install-m9y0ebu8\box2d-py_968d0f93ddd24019be996ebc65f9b54d
Complete output (16 lines): Using setuptools (version 41.2.0). running install running build running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\Box2D copying library\Box2D\Box2D.py -> build\lib.win-amd64-3.7\Box2D copying library\Box2D_init.py -> build\lib.win-amd64-3.7\Box2D creating build\lib.win-amd64-3.7\Box2D\b2 copying library\Box2D\b2_init.py -> build\lib.win-amd64-3.7\Box2D\b2 running build_ext building 'Box2D._Box2D' extension swigging Box2D\Box2D.i to Box2D\Box2D_wrap.cpp 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 error: command 'swig.exe' failed: No such file or directory ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\\users\lucas\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\lucas\AppData\Local\Temp\pip-install-m9y0ebu8\box2d-py_968d0f93ddd24019be996ebc65f9b54d\setup.py'"'"'; file='"'"'C:\Users\lucas\AppData\Local\Temp\pip-install-m9y0ebu8\box2d-py_968d0f93ddd24019be996ebc65f9b54d\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\lucas\AppData\Local\Temp\pip-record-jdw1u6am\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\\users\lucas\appdata\local\programs\python\python37\Include\box2d-py' Check the logs for full command output.
I'm using Windows 10 familly.
Source: openai/spinningup