Closed 00001H closed 1 year ago
Pip failed. SWIG error
Collecting tensorflow-rl Using cached tensorflow_rl-0.2.2-py3-none-any.whl Requirement already satisfied: gym>=0.10.5 in e:\python310\lib\site-packages (from tensorflow-rl) (0.26.2) Collecting tensorboardX>=1.4 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/60/9f/d532d37f10ac7af136d4c2ba71e1fe7af0f3cc0cc076dfc05826171e9737/tensorboardX-2.6-py2.py3-none-any.whl (114 kB) Collecting Box2D>=2.3.2 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/cc/7b/ddb96fea1fa5b24f8929714ef483f64c33e9649e7aae066e5f5023ea426a/Box2D-2.3.2.tar.gz (427 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: numpy>=1.13 in e:\python310\lib\site-packages (from tensorflow-rl) (1.24.2) Requirement already satisfied: cloudpickle>=1.2.0 in e:\python310\lib\site-packages (from gym>=0.10.5->tensorflow-rl) (2.2.1) Requirement already satisfied: gym-notices>=0.0.4 in e:\python310\lib\site-packages (from gym>=0.10.5->tensorflow-rl) (0.0.8) Requirement already satisfied: protobuf<4,>=3.8.0 in e:\python310\lib\site-packages (from tensorboardX>=1.4->tensorflow-rl) (3.19.6) Requirement already satisfied: packaging in e:\python310\lib\site-packages (from tensorboardX>=1.4->tensorflow-rl) (23.0) Building wheels for collected packages: Box2D Building wheel for Box2D (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [17 lines of output] Using setuptools (version 67.6.0). running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\Box2D copying library\Box2D\Box2D.py -> build\lib.win-amd64-cpython-310\Box2D copying library\Box2D\__init__.py -> build\lib.win-amd64-cpython-310\Box2D creating build\lib.win-amd64-cpython-310\Box2D\b2 copying library\Box2D\b2\__init__.py -> build\lib.win-amd64-cpython-310\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 Box2D\Box2D.i(44) : Error: Unknown directive '%exception'. error: command 'C:\\path\\swig.exe' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for Box2D Running setup.py clean for Box2D Failed to build Box2D Installing collected packages: Box2D, tensorboardX, tensorflow-rl Running setup.py install for Box2D ... error error: subprocess-exited-with-error × Running setup.py install for Box2D did not run successfully. │ exit code: 1 ╰─> [19 lines of output] Using setuptools (version 67.6.0). running install E:\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build\lib.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\Box2D copying library\Box2D\Box2D.py -> build\lib.win-amd64-cpython-310\Box2D copying library\Box2D\__init__.py -> build\lib.win-amd64-cpython-310\Box2D creating build\lib.win-amd64-cpython-310\Box2D\b2 copying library\Box2D\b2\__init__.py -> build\lib.win-amd64-cpython-310\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 Box2D\Box2D.i(44) : Error: Unknown directive '%exception'. error: command 'C:\\path\\swig.exe' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> Box2D note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.
Pip failed. SWIG error