一个飞行器强化学习反震环境安装以及mujoco-py、gym0.21踩坑
这个是这个方针环境的连接gym_multirotor但是按照这个安装教程根本安装不了,所以就只能根据它需要的东西重头开始安装
1. mujoco_py
ubuntu20.04下安装mujoco、mujoco-py、gym主要参考了大佬的这个教程,这里主要记录一下猜的坑
2、 gcc错误
distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1
sudo apt-get install build-essential
sudo apt-get install build-essential libgl1-mesa-dev
sudo apt-get install libglew-dev libsdl2-dev libsdl2-image-dev libglm-dev libfreetype6-dev
sudo apt-get install libglfw3-dev libglfw3
安装依赖解决了
3 . gym降级
pip install setuptools==65.5.0
pip install --user wheel==0.38.0
然后
pip install gym==0.21.0 -i https://pypi.douban.com/simple