Open dbl001 opened 2 years ago
I think this is duplicate of #605. I agree with you that gcc detection in mujoco-py installation script should be improved.
In the meantime, a workaround for you would be:
export CC=/usr/local/bin/gcc-11 # Assuming you are on a Intel Mac
pip install mujoco-py
FYI, for M1 mac with arm64 homebrew gcc export CC=/opt/homebrew/bin/gcc-11
will do the job, but the installed mujoco-py will still not work due to lack of arm64 support. See #605 for details.
@dbl001 May I ask if you are using Intel mac or M1 mac? What is your path to homebrew-installed gcc? i.e., which gcc
I am on the Intel iMac 2020. I run MacPorts.
$ which gcc /opt/local/bin/gcc
gcc 11.2.0
On Nov 18, 2021, at 2:43 PM, Jongwook Choi @.***> wrote:
@dbl001 https://github.com/dbl001 May I ask if you are using Intel mac or M1 mac? What is your path to homebrew-installed gcc? i.e., which gcc
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openai/mujoco-py/issues/651#issuecomment-973343754, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXWFW36TAT4IL2ZQABN623UMV6PLANCNFSM5IAGQ6RQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Describe the bug Please add: gcc (MacPorts gcc11 11.2.0_1) 11.2.0 to the list of c_compilers in the file: mujoco_py/builder.py
To Reproduce In project decision-transformer, in ~/decision-transformer/gym: $ conda env create -f conda_env.yml
Expected behavior A clear and concise description of what you expected to happen.
Error Messages RuntimeError: Could not find GCC executable.
HINT: On OS X, install GCC with
brew install gcc
. orport install gcc
.Desktop (please complete the following information):
Environment
echo $LD_LIBRARY_PATH
echo $HOME
echo $USER