Skip to content

pls help install box2d-py #844

Closed
Closed
@Sandy4321

Description

@Sandy4321

also mentioned in
pybox2d/pybox2d#106
None of the solutions above solved my problem...
Windows 10 - 64
Python 3.7
error is

E:\WINPYTHON_FULL_apr22\WPy64-3770\scripts>pip install box2d-py
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: 'E:\WINPYTHON_FULL_apr22\WPy64-3770\python-3.7.7.amd64\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\sndr\AppData\Local\Temp\pip-install-051a0jhh\box2d-py\setup.py'"'"'; file='"'"'C:\Users\sndr\AppData\Local\Temp\pip-install-051a0jhh\box2d-py\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\sndr\AppData\Local\Temp\pip-wheel-o6d1ycsj'
cwd: C:\Users\sndr\AppData\Local\Temp\pip-install-051a0jhh\box2d-py
Complete output (16 lines):
Using setuptools (version 46.0.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: 'E:\WINPYTHON_FULL_apr22\WPy64-3770\python-3.7.7.amd64\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\sndr\AppData\Local\Temp\pip-install-051a0jhh\box2d-py\setup.py'"'"'; file='"'"'C:\Users\sndr\AppData\Local\Temp\pip-install-051a0jhh\box2d-py\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\sndr\AppData\Local\Temp\pip-record-196k65d5\install-record.txt' --single-version-externally-managed --compile --install-headers 'E:\WINPYTHON_FULL_apr22\WPy64-3770\python-3.7.7.amd64\Include\box2d-py'
cwd: C:\Users\sndr\AppData\Local\Temp\pip-install-051a0jhh\box2d-py
Complete output (16 lines):
Using setuptools (version 46.0.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: 'E:\WINPYTHON_FULL_apr22\WPy64-3770\python-3.7.7.amd64\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\sndr\AppData\Local\Temp\pip-install-051a0jhh\box2d-py\setup.py'"'"'; file='"'"'C:\Users\sndr\AppData\Local\Temp\pip-install-051a0jhh\box2d-py\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\sndr\AppData\Local\Temp\pip-record-196k65d5\install-record.txt' --single-version-externally-managed --compile --install-headers 'E:\WINPYTHON_FULL_apr22\WPy64-3770\python-3.7.7.amd64\Include\box2d-py' Check the logs for full command output.

E:\WINPYTHON_FULL_apr22\WPy64-3770\scripts>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions