ubantu20安装mujoco_py(mjpro150)教程-vmware
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/18837dbd71b36e84b0a0e5d426405df4.png)
2、安装前提 新建anaconda虚拟环境python3.6
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/416e1b537678c49587552739c98162cd.png)
sudo apt-get install build-essential
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/2a574b0a76b4b34822787938ff5dab83.png)
pip install -r requirements.txt
pip install -r requirements.dev.txt
python setup.py install
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/5d6fe4c487d71d76d57e1f6809af97aa.png)
mujoco-py<1.50.2,>=1.50.1
出现问题,则尝试单个组件依次安装,找出问题
3、测试
python
import mujoco_py
import mujoco_py
import os
mj_path, _ = mujoco_py.utils.discover_mujoco()
xml_path = os.path.join(mj_path, 'model', 'humanoid.xml')
model = mujoco_py.load_model_from_path(xml_path)
sim = mujoco_py.MjSim(model)
print(sim.data.qpos)
sim.step()
print(sim.data.qpos)
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/3e2bca148749b637e13fa233fe85876f.png)