Skip to content

00 Installation Guide

Lavi22 edited this page Sep 8, 2019 · 2 revisions

(Optional) Create a VirtualBox Ubuntu 16.04 or 18.04 env

If you don't have 64-bit environment: solution

Install Bazel

Use Bazel custom APT repository download link

Clone Deepmind/lab

$ git clone https://github.com/deepmind/lab.git

Install other required packages

$ sudo apt-get install libffi-dev gettext freeglut3-dev libsdl2-dev zip libosmesa6-dev python3-dev python3-numpy python-pil

Python 3

Virtual env pip

  1. Replace python.BUILD in lab/ with this python.BUILD if you are using a virtual environment such as conda or virtualenv
  2. Execute the scripts below:
$ cd lab
$ bazel build -c opt python/pip_package:build_pip_package
$ ./bazel-bin/python/pip_package/build_pip_package /tmp/dmlab_pkg
$ pip install /tmp/dmlab_pkg/DeepMind_Lab-1.0-py3-none-any.whl --force-reinstall

If you failed the first script, please check the following:

  1. Make sure numpy is installed in the virtual environment
  2. The paths in python.BUILD is correct in your machine (Please check the comments for further information)
  3. Clean bazel cache before any retry
# clean cache
bazel clean --expunge # clean bazel

Test

bazel

This results in OpenGL error if you are using a server.

bazel run :game -- -l seekavoid_arena_01 -s logToStdErr=true 

python

Please use the script to test if the python 3 installation is working fine

python test.py <env_name> <out_figure>
python test.py seekavoid_arena_01 sk.png

will output the observation of the agent.

Clone this wiki locally