This is a personal project using the MineRL library to test reinforcement learning in a video game environment.
-
Install gcc and xvfb(used for running scripts):
sudo apt install gcc sudo apt install xvfb
-
Install JDK 1.8 (Debian system):
sudo add-apt-repository ppa:openjdk-r/ppa sudo apt-get update sudo apt-get install openjdk-8-jdk
-
Install Anaconda:
-
Create an environment with Python 3.9:
conda create -n minecraft python=3.9
-
Install Anaconda library
conda install -c conda-forge libstdcxx-ng
-
Install the libraries form the requirements.txt file:
pip install -r requirements.txt
xvfb-run python3 <your_script.py>
-
Export data directory location:
sudo nano ~/.bashrc Add export MINERL_DATA_ROOT=/home/noe_jager/Documents/minerl_diamonds/data/ source ~/.bashrc
-
Download env :
python3 -m minerl.data.download --environment "MineRLObtainDiamond-v0"
Random trajectory :
python3 -m minerl.viewer environment
Specific trajectory :
python3 -m minerl.viewer environment name_of_trajectory
python -m minerl.interactor 5656
For more help with MineRL, check out the documentation: https://minerl.readthedocs.io/en/v0.4.4/index.html