mujoco-py icon indicating copy to clipboard operation
mujoco-py copied to clipboard

Cannot install on MacOS "this compiler does not support arm64"

Open Nicolas99-9 opened this issue 4 years ago • 5 comments

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.

Nicolas99-9 avatar Oct 27 '21 08:10 Nicolas99-9

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.

FrankenApps avatar Nov 10 '21 09:11 FrankenApps

What was the path of gcc when you saw such an error? Can you try which gcc?

wookayin avatar Nov 18 '21 22:11 wookayin

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

floracharbo avatar Jan 01 '22 15:01 floracharbo

has anyone resolved this issue yet? I switched to MacOS recently and am getting the same error...

lancezhang04 avatar Jan 27 '23 18:01 lancezhang04

I'm joining the question. How can I overcome this error of: "gcc-9: error: this compiler does not support arm64".

Thanks!

dotd avatar Jun 29 '23 18:06 dotd