Skip to content

Script failed while installing mujoco_py #3

@mweber7

Description

@mweber7

See below for an excerpt of the received error:

fatal error: mjmodel.h: No such file or directory
#include "mjmodel.h"
^~~~~~~~~~~
compilation terminated.
error: command '/usr/local/bin/gcc-7' failed with exit status 1


Failed building wheel for mujoco-py
Running setup.py clean for mujoco-py
Failed to build mujoco-py
Installing collected packages: mujoco-py, gym
Running setup.py install for mujoco-py ... error
Complete output from command /Applications/anaconda/envs/p35/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/rv/7r2c88sx7kbgcgb605v0116c0000gn/T/pip-build-mw16rf7s/mujoco-py/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/rv/7r2c88sx7kbgcgb605v0116c0000gn/T/pip-qs6444fq-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'mujoco_py.cymj' extension
/usr/local/bin/gcc-7 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/anaconda/envs/p35/include -arch x86_64 -I/Applications/anaconda/envs/p35/include -arch x86_64 -DONMAC -Imujoco_py -I/private/var/folders/rv/7r2c88sx7kbgcgb605v0116c0000gn/T/pip-build-mw16rf7s/mujoco-py/mujoco_py -I/Users/mweber/.mujoco/mjpro150/include -I/Applications/anaconda/envs/p35/lib/python3.5/site-packages/numpy/core/include -I/Applications/anaconda/envs/p35/include/python3.5m -c /private/var/folders/rv/7r2c88sx7kbgcgb605v0116c0000gn/T/pip-build-mw16rf7s/mujoco-py/mujoco_py/cymj.c -o /private/var/folders/rv/7r2c88sx7kbgcgb605v0116c0000gn/T/pip-build-mw16rf7s/mujoco-py/mujoco_py/generated/_pyxbld_MacExtensionBuilder/temp.macosx-10.6-x86_64-3.5/private/var/folders/rv/7r2c88sx7kbgcgb605v0116c0000gn/T/pip-build-mw16rf7s/mujoco-py/mujoco_py/cymj.o -fopenmp -w
/private/var/folders/rv/7r2c88sx7kbgcgb605v0116c0000gn/T/pip-build-mw16rf7s/mujoco-py/mujoco_py/cymj.c:573:10: fatal error: mjmodel.h: No such file or directory
#include "mjmodel.h"
^~~~~~~~~~~
compilation terminated.
error: command '/usr/local/bin/gcc-7' failed with exit status 1

----------------------------------------

Command "/Applications/anaconda/envs/p35/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/rv/7r2c88sx7kbgcgb605v0116c0000gn/T/pip-build-mw16rf7s/mujoco-py/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/rv/7r2c88sx7kbgcgb605v0116c0000gn/T/pip-qs6444fq-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/rv/7r2c88sx7kbgcgb605v0116c0000gn/T/pip-build-mw16rf7s/mujoco-py/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions