-
Notifications
You must be signed in to change notification settings - Fork 638
Getting Started: Windows 10 Users
robosuite has a core dependency on mujoco-py > 2.0 and mujoco200
Unfortunately, the last supported version for Windows is 1.5.0; however, mujoco-py > 2.0 can be made to work with Windows with minimal changes. In this guide, we provide steps for installing robosuite 1.0 with Windows 10.
Note: robosuite does not officially support Windows 10 - these steps are a workaround if you have no other alternatives
First, we need to install mujoco-py >= 2.0. The official recommended version is 2.0.2.9; however, at the time of writing, the releases for mujoco-py contain only 2.0.2.5, so this guide is written with that version in mind.
-
Clone mujoco-py from Github or download and unzip 2.0.2.5 from releases
-
Get mujoco200, a license, and set these up according to (http://www.mujoco.org/)
-
Before installing mujoco-py through pip, you must change
mujoco_py\cymj.pyx. mujoco-py > 2.0 usesdelete=Trueintempfile.NamedTemporaryFileinload_model_from_xmlaround line 178, which will not work with Windows, yielding[Errno 13] permission denied. To fix this, change thedelete=Falsekeyword and unindent the line withmodel = ...(189) alternatively, copy theload_model_from_xmlcode frommujoco-py==1.5.0which is known to be stable for Windows
| Source | Modified |
|---|---|
![]() |
![]() |
-
[Optional] Since mujoco-py uses cythonize, you may need to install additional build tools to compile mujoco-py from source. You can get these from visual studio code Note: You should be able to install without the Windows SDK if you want to save space This should give you a new terminal,
x64 Native Tools Command Prompt for VS 2017which you should use for the next step. See this thread for more help -
Install mujoco-py by using
pip install -e . --no_cachein the top level directory of mujoco-py. After this step, you should verify that you can run mujoco-py.
-
Clone robosuite from github or download release version 1.0
-
[Optional] remove mentions of
mujoco-pyfromrequirements.txtandsetup.py(I had to do this as my version was 2.02.5 which was < 2.0.2.9, the version specified in robosuite, but if your version is equal it won't be required) -
Install robosuite using
pip install -e .in the top level directory -
[Optional] Run one of the demo scripts to validate robosuite is working - I had to install a few more dependencies as a result of chancing
requirements.txtandsetup.py, but the error messages were descriptive enough that I justpip install <missing dependency>
As mentioned, this is a work around, and Windows 10 is not officially supported by the project - as such it is not guaranteed that this will work on future versions of mujoco-py or robosuite. For best results you should use a clean environment
Good luck :)

