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\

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值