You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows Anaconda环境下安装ReboundX失败的求助

Windows Anaconda环境下安装ReboundX失败的求助

各位好,我完全是命令行、Linux终端这类工具的新手,最近在Windows的Anaconda环境里装ReboundX一直失败,试了谷歌搜的方法还有ChatGPT给的步骤,结果都一样,实在没辙了来求助!

我已经通过Microsoft Visual Studio Installer安装了Visual Studio Build Tools 2022,确保里面包含了C++相关组件,但运行安装命令后还是弹出了错误,下面是完整的报错输出:

Collecting reboundx
Using cached reboundx-4.4.1.tar.gz (93 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: rebound>=4.0.0 in c:\harrison\anaconda3\lib\site-packages (from reboundx) (4.4.6)
Building wheels for collected packages: reboundx
Building wheel for reboundx (pyproject.toml): started
Building wheel for reboundx (pyproject.toml): finished with status 'error'
Failed to build reboundx
Note: you may need to restart the kernel to use updated packages.

error: subprocess-exited-with-error

Building wheel for reboundx (pyproject.toml) did not run successfully.
exit code: 1

[66 lines of output]
C:\Users\harri\AppData\Local\Temp\pip-build-env-rqb8pk0z\overlay\Lib\site-packages\setuptools\_distutils\dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
C:\Users\harri\AppData\Local\Temp\pip-build-env-rqb8pk0z\overlay\Lib\site-packages\setuptools\_distutils\dist.py:289: UserWarning: Unknown distribution option: 'test_suite'
warnings.warn(msg)
C:\Users\harri\AppData\Local\Temp\pip-build-env-rqb8pk0z\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!! ********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
******************************************************************************** !!
self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build\lib.win-amd64-cpython-311\reboundx
copying reboundx\constants.py -> build\lib.win-amd64-cpython-311\reboundx
copying reboundx\data.py -> build\lib.win-amd64-cpython-311\reboundx
copying reboundx\extras.py -> build\lib.win-amd64-cpython-311\reboundx
copying reboundx\params.py -> build\lib.win-amd64-cpython-311\reboundx
copying reboundx\simulationarchive.py -> build\lib.win-amd64-cpython-311\reboundx
copying reboundx\testing.py -> build\lib.win-amd64-cpython-311\reboundx
copying reboundx\tools.py -> build\lib.win-amd64-cpython-311\reboundx
copying reboundx\__init__.py -> build\lib.win-amd64-cpython-311\reboundx
running build_ext
C:\Users\harri\AppData\Local\Temp\pip-build-env-rqb8pk0z\overlay\Lib\site-packages\rebound\__init__.py:58: UserWarning: pkg_resources is deprecated as an API.
The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources
*** C:\Users\harri\AppData\Local\Temp\pip-build-env-rqb8pk0z\overlay\Lib\site-packages\rebound ***
C:\Harrison\Anaconda3\Lib\site-packages/ ***
*** building 'libreboundx' extension
creating build\temp.win-amd64-cpython-311\Release\src
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.44.35207\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DLIBREBOUNDX -Isrc -IC:\Harrison\Anaconda3\include -IC:\Harrison\Anaconda3\Include -IC:\Users\harri\AppData\Local\Temp\pip-build-env-rqb8pk0z\overlay\Lib\site-packages\rebound "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.44.35207\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc/central_force.c /Fobuild\temp.win-amd64-cpython-311\Release\src\central_force.obj -DREBXGITHASH=ecc53659ede5ab6ebcb37c70deb3c11970992cef -DLIBREBOUNDX -D_GNU_SOURCE
central_force.c &qu

真的对这些报错信息一头雾水,有没有大佬能给我一步步的、适合新手的解决办法?麻烦尽量说的直白点,谢谢大家了!

内容来源于stack exchange

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.08 08:40:28