openai / mujoco-py

MuJoCo is a physics engine for detailed, efficient rigid body simulations with contacts. mujoco-py allows using MuJoCo from Python 3.
Other
2.87k stars 813 forks source link

I think I have a quite complex question. I followed the guidance to install everything.Finally, I python setup.py install and it told me that everything is satisfied but when I input import mujoco_py, there was an error: distutils.error.LinkError:command:command 'gcc' failed with exit status 1. And the detail is that #501

Open suyunjiephoebe opened 4 years ago

suyunjiephoebe commented 4 years ago

Describe the bug I followed the guidance to install everything.Finally, I python setup.py install and it told me that everything is satisfied but when I input import mujoco_py, there was an error: distutils.error.LinkError:command:command 'gcc' failed with exit status 1.

To Reproduce The above step shows me that my gcc version is 7.2.0 When I use gcc -v to check it, it was 5.4.0 I guessed it might be a problem but I am not sure Expected behavior Hope you can help me successfully install the mujoco-py and I don't might to use team viewer

Error Messages ./anaconda3/lib/python3.6/distutils/unixccompiler.py line199 in link raise LinkErorr(msg) distutils.error.LinkError:command:command 'gcc' failed with exit status 1.

Desktop (please complete the following information):

Tarrandurham commented 4 years ago

I get the same kind of thing on MacOs

suyunjiephoebe commented 4 years ago

I get the same kind of thing on MacOs Oh, I sincerely hope that if you have any solution for this problem, you would tell me too! Thank you so much!!

gregbruss commented 4 years ago

Same thing on most MacOS

wberdanier commented 4 years ago

Same on MacOS

wberdanier commented 4 years ago

Just wanted to update the thread: uninstalling all older GCC versions via homebrew and then running

brew install gcc@9,

which installs GCC 9.3, and then running

pip install -U mujoco-py<2.1,>=2.0

finally worked for me. No more compiler errors. Note that you seem to need both mujoco200 and mujocopro150 for openai/spinningup.

ww-Jingle commented 4 years ago

Hi, did you solve this problem? I got the same problem in Linux.

suyunjiephoebe commented 4 years ago

No I didn’t. I think my problem may be due to the virtual machine. I use virtual machine to operate Linux. And finally I choose box 2D to simulate

suyunjie0824 邮箱:suyunjie0824@163.com

Signature is customized by Netease Mail Master

On 04/20/2020 03:31, ww-Jingle wrote:

Hi, did you solve this problem? I got the same problem in Linux.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.