mujoco-py
mujoco-py copied to clipboard
Cannot install on MacOS "this compiler does not support arm64"
OS: [Mac OS 11.6] Python Version [ 3.8.2] Mujoco Version [Mujoco200]
I cannot install mujoco-py on macOS (version 11.6). I followed the steps that are described on the GitHub page but I cannot launch an environment.
I used pip install -e . --no-cache to install mujoco-py. There is no errors, and I can run ./simulate ../model/humanoid.xml. However, when I tried to launch a new environment or import: import mujoco_py , there is problem with gcc.
It says that it does not support arm64 (which is slightly odds since my Mac has an Intel CPU ):
gcc-8: error: this compiler does not support arm64 gcc-8: error: unrecognized command-line option '-iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders' gcc-8: error: unrecognized command-line option '-iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers'
I tried to install gcc6-11 but it always fail.
Seems to be related to the clang version used in python. It does not work with Clang13, but it works in an anaconda environment which currently uses Clang10.
However there seems to be a misconfigured build option somewhere.
What was the path of gcc when you saw such an error? Can you try which gcc?
What was the path of gcc when you saw such an error? Can you try
which gcc?
I have the same problem. The path is /usr/bin/gcc
has anyone resolved this issue yet? I switched to MacOS recently and am getting the same error...
I'm joining the question. How can I overcome this error of: "gcc-9: error: this compiler does not support arm64".
Thanks!