CS285踩坑

环境踩坑,Docker是不可能搞定的,原因是Mujoco的license无法识别docker,官方论坛承认必须要用buy license才能搞定docker。

另外python版本必须用3.5.2,以下是基于ubuntu 18镜像安装过程遇到的问题。

conda create -n eapp_env python=3.5.2 --channel conda-forge

HW1环境安装问题

问题0:作业Readme里提到了mjkey.txt文件,其实是mujoco的license,需要去官网申请免费的30天试用license,网址是https://www.roboti.us/license.html

安装pip install -r requirments.txt 过程中,会遇到大量问题,主要集中在mujoco-py的安装

问题1:
/tmp/pip-install-nbui0vyl/mujoco-py/mujoco_py/gl/osmesashim.c:1:10: fatal error: GL/osmesa.h: No such file or directory

解决:

sudo apt-get install libosmesa6-dev

问题2:
/usr/bin/ld: cannot find -lGL

sudo apt-get install freeglut3 freeglut3-dev

问题3
ImportError: Failed to load GLFW3 shared library.

sudo apt-get install libglfw3

CS285除了mujoco-py其他都可以直接安装

mujoco从github的源编译安装,方法

As a successful workaround, I cloned the mujoco-py repo, cd into it, and did a python setup.py install

参考https://github.com/openai/mujoco-py/issues/236

comments powered by Disqus