Open LittlePotatoChip opened 9 months ago
Same error
Hi, are there any fixes for this issue yet ?
This is just an issue with not having MuJoCo installed in your system. The older versions of mujoco-py
require the older version of MuJoCo to work. You need to (1) download the version of MuJoCo that it references (150
) from here, (2) extract it to the corresponding folder (~/.mujoco/mjpro150
), (3) download the mjkey.txt
from here, and (4) place the mjkey.txt
at the root of your ~/.mujoco/
folder.
(spinningup2) potato@potato-MS-7E13:~/workplace/spinningup$ pip install gym[mujoco,robotics] Requirement already satisfied: gym[mujoco,robotics] in /home/potato/.conda/envs/spinningup2/lib/python3.7/site-packages (0.15.7) Requirement already satisfied: scipy in /home/potato/.conda/envs/spinningup2/lib/python3.7/site-packages (from gym[mujoco,robotics]) (1.7.3) Requirement already satisfied: numpy>=1.10.4 in /home/potato/.conda/envs/spinningup2/lib/python3.7/site-packages (from gym[mujoco,robotics]) (1.18.5) Requirement already satisfied: six in /home/potato/.conda/envs/spinningup2/lib/python3.7/site-packages (from gym[mujoco,robotics]) (1.16.0) Requirement already satisfied: pyglet<=1.5.0,>=1.4.0 in /home/potato/.conda/envs/spinningup2/lib/python3.7/site-packages (from gym[mujoco,robotics]) (1.5.0) Requirement already satisfied: cloudpickle~=1.2.0 in /home/potato/.conda/envs/spinningup2/lib/python3.7/site-packages (from gym[mujoco,robotics]) (1.2.1) Collecting mujoco-py<2.0,>=1.50 (from gym[mujoco,robotics]) Using cached mujoco-py-1.50.1.68.tar.gz (120 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: imageio in /home/potato/.conda/envs/spinningup2/lib/python3.7/site-packages (from gym[mujoco,robotics]) (2.31.2) Requirement already satisfied: glfw>=1.4.0 in /home/potato/.conda/envs/spinningup2/lib/python3.7/site-packages (from mujoco-py<2.0,>=1.50->gym[mujoco,robotics]) (2.7.0) Requirement already satisfied: Cython>=0.27.2 in /home/potato/.conda/envs/spinningup2/lib/python3.7/site-packages (from mujoco-py<2.0,>=1.50->gym[mujoco,robotics]) (0.29.21) Requirement already satisfied: cffi>=1.10 in /home/potato/.conda/envs/spinningup2/lib/python3.7/site-packages (from mujoco-py<2.0,>=1.50->gym[mujoco,robotics]) (1.15.1) Requirement already satisfied: lockfile>=0.12.2 in /home/potato/.conda/envs/spinningup2/lib/python3.7/site-packages (from mujoco-py<2.0,>=1.50->gym[mujoco,robotics]) (0.12.2) Requirement already satisfied: pillow>=8.3.2 in /home/potato/.conda/envs/spinningup2/lib/python3.7/site-packages (from imageio->gym[mujoco,robotics]) (9.5.0) Requirement already satisfied: future in /home/potato/.conda/envs/spinningup2/lib/python3.7/site-packages (from pyglet<=1.5.0,>=1.4.0->gym[mujoco,robotics]) (1.0.0) Requirement already satisfied: pycparser in /home/potato/.conda/envs/spinningup2/lib/python3.7/site-packages (from cffi>=1.10->mujoco-py<2.0,>=1.50->gym[mujoco,robotics]) (2.21) Building wheels for collected packages: mujoco-py Building wheel for mujoco-py (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [61 lines of output] running bdist_wheel running build
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for mujoco-py Running setup.py clean for mujoco-py Failed to build mujoco-py ERROR: Could not build wheels for mujoco-py, which is required to install pyproject.toml-based projects