python box2d_Python无法安装Box2D swig.exe失败,错误代码为1

C:\>pip3 installBox2DCollectingBox2DUsingcached https://files.pythonhosted.org/packages/cc/7b/ddb96fea1fa5b24f8929714ef483f64c33e9649e7aae066e5f5023ea426a/Box2D-2.3.2.tar.gzBuildingwheelsforcollected packages:Box2DRunningsetup.py bdist_wheelforBox2D...errorCompleteoutputfromcommand c:\users\hp-laptop\appdata\local\programs\python\python36\python.exe-u-c"import setuptools, tokenize;__file__='C:\\Users\\HP-LAP~1\\AppData\\Local\\Temp\\pip-install-r48_7g5v\\Box2D\\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\HP-LAP~1\AppData\Local\Temp\pip-wheel-d2ghuwrx--python-tag cp36:Usingsetuptools(version40.5.0).running bdist_wheel

running build

running build_py

creating build

creating build\lib.win-amd64-3.6creating build\lib.win-amd64-3.6\Box2D

copying library\Box2D\Box2D.py->build\lib.win-amd64-3.6\Box2D

copying library\Box2D\__init__.py->build\lib.win-amd64-3.6\Box2D

creating build\lib.win-amd64-3.6\Box2D\b2copying library\Box2D\b2\__init__.py->build\lib.win-amd64-3.6\Box2D\b2running build_ext

building'Box2D._Box2D'extension

swiggingBox2D\Box2D.i toBox2D\Box2D_wrap.cpp

C:\Users\HP-Laptop\AppData\Local\Programs\Python\Python36\swig.exe-python-c++-IBox2D-small-O-includeall-ignoremissing-w201-globals b2Globals-outdir library\Box2D-keyword-w511-D_SWIG_KWARGS-oBox2D\Box2D_wrap.cppBox2D\Box2D.i

C:\Users\HP-Laptop\AppData\Local\Programs\Python\Python36\Lib\pyprimtypes.swg(7):Error:Syntaxerrorininput(1).error:command'C:\\Users\\HP-Laptop\\AppData\\Local\\Programs\\Python\\Python36\\swig.exe'failedwithexit status1----------------------------------------Failedbuilding wheelforBox2DRunningsetup.py cleanforBox2DFailedto buildBox2DInstallingcollected packages:Box2DRunningsetup.py installforBox2D...errorCompleteoutputfromcommand c:\users\hp-laptop\appdata\local\programs\python\python36\python.exe-u-c"import setuptools, tokenize;__file__='C:\\Users\\HP-LAP~1\\AppData\\Local\\Temp\\pip-install-r48_7g5v\\Box2D\\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\HP-LAP~1\AppData\Local\Temp\pip-record-nv5dm4ru\install-record.txt--single-version-externally-managed--compile:Usingsetuptools(version40.5.0).running install

running build

running build_py

creating build

creating build\lib.win-amd64-3.6creating build\lib.win-amd64-3.6\Box2D

copying library\Box2D\Box2D.py->build\lib.win-amd64-3.6\Box2D

copying library\Box2D\__init__.py->build\lib.win-amd64-3.6\Box2D

creating build\lib.win-amd64-3.6\Box2D\b2copying library\Box2D\b2\__init__.py->build\lib.win-amd64-3.6\Box2D\b2running build_ext

building'Box2D._Box2D'extension

swiggingBox2D\Box2D.i toBox2D\Box2D_wrap.cpp

C:\Users\HP-Laptop\AppData\Local\Programs\Python\Python36\swig.exe-python-c++-IBox2D-small-O-includeall-ignoremissing-w201-globals b2Globals-outdir library\Box2D-keyword-w511-D_SWIG_KWARGS-oBox2D\Box2D_wrap.cppBox2D\Box2D.i

C:\Users\HP-Laptop\AppData\Local\Programs\Python\Python36\Lib\pyprimtypes.swg(7):Error:Syntaxerrorininput(1).error:command'C:\\Users\\HP-Laptop\\AppData\\Local\\Programs\\Python\\Python36\\swig.exe'failedwithexit status1----------------------------------------Command"c:\users\hp-laptop\appdata\local\programs\python\python36\python.exe -u -c "importsetuptools,tokenize;__file__='C:\\Users\\HP-LAP~1\\AppData\\Local\\Temp\\pip-install-r48_7g5v\\Box2D\\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\HP-LAP~1\AppData\Local\Temp\pip-record-nv5dm4ru\install-record.txt --single-version-externally-managed --compile"failedwitherror code1inC:\Users\HP-LAP~1\AppData\Local\Temp\pip-install-r48_7g5v\Box2D\

你可能感兴趣的:(python,box2d)