> For the complete documentation index, see [llms.txt](https://tk233.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tk233.gitbook.io/notes/ml-rl/setting-up-minedojo-environment.md).

# Setting up MineDojo Environment

Following tutorial [here](https://docs.minedojo.org/sections/getting_started/install.html).

##

## Installation

Install JDK 8

```bash
sudo apt update -y
sudo apt install -y software-properties-common
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt update -y
sudo apt install -y openjdk-8-jdk
```

Switch Java version

```bash
sudo update-alternatives --config java
```

Install MineDojo

```bash
pip install minedojo
```
