我想在 macOS 上运行
pip3 install -U 'mujoco-py<1.50.2,>=1.50.1'
,但它返回了
File "/private/var/folders/1t/t0dzx5fn3jn1r9lqx_2j3m9m0000gn/T/pip-install-i8wi8lki/mujoco-py_48d744c3b7c64c6abb74252cb291ab88/mujoco_py/builder.py", line 320, in _build_impl
raise RuntimeError(
RuntimeError: Could not find GCC executable.
HINT: On OS X, install GCC with `brew install gcc`.
我安装了以下
gcc
版本:
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
并且正在运行Python版本:
Python 3.9.17 (main, Jun 15 2023, 08:01:12)
[Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
这里有什么问题?
最终目标是安装并运行
gym[mujoco]==0.19
我找到了this,但它没有帮助,并且涉及不同的
mujoco
版本。
我也遇到类似的问题,请问有更新吗?