强化学习环境安装深度强化学习环境安装(gym,mujoco,mujoco_pybaselines) - 知乎
安装时报错:
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
ERROR: Command errored out with exit status 1: /home/nico/anaconda3/envs/gymlab/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-608l94ot/mujoco-py_13fedec4a8ed4968a06a73399b81d3b5/setup.py'"'"'; __file__='"'"'/tmp/pip-install-608l94ot/mujoco-py_13fedec4a8ed4968a06a73399b81d3b5/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-kk9501i4/install-record.txt --single-version-externally-managed --compile --install-headers /home/nico/anaconda3/envs/gymlab/include/python3.6m/mujoco-py Check the logs for full command output.
解决方法:
sudo apt install gcc