ImportError: DLL load failed while importing cymj: The specified module could not be found. · Issue #638 · openai/mujoco 您所在的位置:网站首页 ssid1=CMCC-cYMj ImportError: DLL load failed while importing cymj: The specified module could not be found. · Issue #638 · openai/mujoco

ImportError: DLL load failed while importing cymj: The specified module could not be found. · Issue #638 · openai/mujoco

2023-08-12 21:39| 来源: 网络整理| 查看: 265

I'm having the same issue. When I import the environment I get this, CompileError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit status 2 cl : Command line warning D9025 : overriding '/W3' with '/w' cl : Command line warning D9002 : ignoring unknown option '-fopenmp'

The error indicates that the path for compiling mujoco-py is too long. One needs to download the source directly and install it according to this.

The other error ImportError: DLL load failed while importing cymj: The specified module could not be found.. which was the original topic of this discussion is problem of python version since 3.8. (the above mentioned tutorial uses 3.7.6). Since python 3.8, only "trusted dlls" are loaded. Hence, one has to add the location of the installed mujoco version to the list of allowed DLLs: os.add_dll_directory("....... //.mujoco//mjpro150//bin") (For others version accordingly.)



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有