pip install gym[box2d]报错
生活随笔
收集整理的這篇文章主要介紹了
pip install gym[box2d]报错
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
pip install gym[box2d]安裝包時(shí)報(bào)錯(cuò)
ERROR: Command errored out with exit status 1:command: 'E:\Anaconda\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\1\\AppData\\Local\\Temp\\pip-install-m2iryvg9\\box2d-py_52dd9735c0d04f18bffda3f9f8ccac52\\setup.py'"'"'; __file__='"'"'C:\\Users \\1\\AppData\\Local\\Temp\\pip-install-m2iryvg9\\box2d-py_52dd9735c0d04f18bffda3f9f8ccac52\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setu p()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\1\AppData\Local\Temp\pip-wheel-s0c49s0h'cwd: C:\Users\1\AppData\Local\Temp\pip-install-m2iryvg9\box2d-py_52dd9735c0d04f18bffda3f9f8ccac52\Complete output (16 lines):Using setuptools (version 58.0.4).running bdist_wheelrunning buildrunning build_pycreating buildcreating build\lib.win-amd64-3.9creating build\lib.win-amd64-3.9\Box2Dcopying library\Box2D\Box2D.py -> build\lib.win-amd64-3.9\Box2Dcopying library\Box2D\__init__.py -> build\lib.win-amd64-3.9\Box2Dcreating build\lib.win-amd64-3.9\Box2D\b2copying library\Box2D\b2\__init__.py -> build\lib.win-amd64-3.9\Box2D\b2running build_extbuilding 'Box2D._Box2D' extensionswigging Box2D\Box2D.i to Box2D\Box2D_wrap.cppswig.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.ierror: command 'swig.exe' failed: None----------------------------------------ERROR: Failed building wheel for box2d-py如下圖所示:
解決辦法:
總結(jié)
以上是生活随笔為你收集整理的pip install gym[box2d]报错的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [落选]狗熊会人才计划第6期选拔作业
- 下一篇: Crazy Kids