-
Notifications
You must be signed in to change notification settings - Fork 0
00 Installation Guide
Lavi22 edited this page Sep 8, 2019
·
2 revisions
If you don't have 64-bit environment: solution
Use Bazel custom APT repository download link
$ git clone https://github.com/deepmind/lab.git
$ sudo apt-get install libffi-dev gettext freeglut3-dev libsdl2-dev zip libosmesa6-dev python3-dev python3-numpy python-pil
- Replace
python.BUILDinlab/with thispython.BUILDif you are using a virtual environment such as conda or virtualenv - 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-reinstallIf you failed the first script, please check the following:
- Make sure numpy is installed in the virtual environment
- The paths in
python.BUILDis correct in your machine (Please check the comments for further information) - Clean bazel cache before any retry
# clean cache
bazel clean --expunge # clean bazelThis results in OpenGL error if you are using a server.
bazel run :game -- -l seekavoid_arena_01 -s logToStdErr=true
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.