mujoco-py
mujoco-py copied to clipboard
distutils.errors.CompileError
Describe the bug I am trying to install mujoco on my windows10 laptop. But it report the error as follow.
To Reproduce
I have installed other gym environments like the CartPole, BipedalWalkers and they run well. I have tried to reinstall my vs tools as the picture shows below

Expected behavior
Error Messages
(base) C:\year4\Hons\Evolutionary-Reinforcement-Learning-master>python main.py --env Humanoid-v2 running build_ext building 'mujoco_py.cymj' extension C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\56325\anaconda3\lib\site-packages\mujoco_py -IC:\Users\56325.mujoco\mjpro150\include -IC:\Users\56325\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\56325\anaconda3\include -IC:\Users\56325\anaconda3\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /TcC:\Users\56325\anaconda3\lib\site-packages\mujoco_py/gl/dummyshim.c /FoC:\Users\56325\anaconda3\lib\site-packages\mujoco_py\generated_pyxbld_1.50.1.59_39_windowsextensionbuilder\temp.win-amd64-3.9\Release\Users\56325\anaconda3\lib\site-packages\mujoco_py/gl/dummyshim.obj -fopenmp -w cl : Command line warning D9025 : overriding '/W3' with '/w' cl : Command line warning D9002 : ignoring unknown option '-fopenmp' dummyshim.c C:\Users\56325\anaconda3\lib\site-packages\mujoco_py\gl\glshim.h(4): fatal error C1083: Cannot open include file: 'mujoco.h': No such file or directory Traceback (most recent call last): File "C:\Users\56325\anaconda3\lib\distutils_msvccompiler.py", line 408, in compile self.spawn(args) File "C:\Users\56325\anaconda3\lib\distutils_msvccompiler.py", line 514, in spawn return super().spawn(cmd) File "C:\Users\56325\anaconda3\lib\distutils\ccompiler.py", line 910, in spawn spawn(cmd, dry_run=self.dry_run) File "C:\Users\56325\anaconda3\lib\distutils\spawn.py", line 91, in spawn raise DistutilsExecError( distutils.errors.DistutilsExecError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\year4\Hons\Evolutionary-Reinforcement-Learning-master\main.py", line 46, in
Desktop (please complete the following information):
- OS: windows 10
- Python Version 3.9.7
- gym version 0.15.6
- Mujoco Version 1.50
- mujoco-py version 1.50.1.59
Environment
- output of:
echo $LD_LIBRARY_PATH - output of:
echo $HOME - output of:
echo $USER
Additional context Add any other context about the problem here.
The same error, any suggestions... And I wonder if you are Chinese because of your name, if yes, I hope I can have your WeChat because I find that you know a lot about ERL which I am recently dedicating to. @DijieDeng
[Image.jpeg]
获取 Outlook for iOShttps://aka.ms/o0ukef
发件人: Evanwu1125 @.> 发送时间: Sunday, March 27, 2022 9:09:41 AM 收件人: openai/mujoco-py @.> 抄送: DENG Qiwen @.>; Mention @.> 主题: Re: [openai/mujoco-py] distutils.errors.CompileError (Issue #683)
This email was sent to you by someone outside the University. You should only click on links or attachments if you are certain that the email is genuine and the content is safe.
The same error, any suggestions... And I wonder if you are Chinese because of your name, if yes, I hope I can have your WeChat because I find that you know a lot about ERL which I am recently dedicating to. @DijieDenghttps://github.com/DijieDeng
― Reply to this email directly, view it on GitHubhttps://github.com/openai/mujoco-py/issues/683#issuecomment-1079878374, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKOMKYV2XEJSL6NRFB3PYMTVCAJULANCNFSM5NZCKY4Q. You are receiving this because you were mentioned.Message ID: @.***>
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th’ ann an Oilthigh Dhùn èideann, clàraichte an Alba, àireamh clàraidh SC005336.
I can't see the image you posted. think you can search my QQ instead. 793034850 @DijieDeng
Have you installed it now? I have encountered the same issues.
o ,I also have the same issues ,spent my time for 8 hours,but do not over