官术网_书友最值得收藏!

Installing OpenAI Gym and Universe

Now let's see how to install OpenAI Gym and Universe. Before that, we need to install several dependencies. First, let's activate the conda environment we just created using the following command:

source activate universe

Then we will install the following dependencies:

sudo apt-get update
sudo apt-get install golang libcupti-dev libjpeg-turbo8-dev make tmux htop chromium-browser git cmake zlib1g-dev libjpeg-dev xvfb libav-tools xorg-dev python-opengl libboost-all-dev libsdl2-dev swig

conda install pip six libgcc swig
conda install opencv

Throughout this book, we will be using gym version 0.7.0 so you can install gym directly using pip as:

pip install gym==0.7.0

Or you can clone the gym repository and install the latest version by following command:

cd ~
git clone https://github.com/openai/gym.git
cd gym
pip install -e '.[all]'

The preceding commands will fetch the gym repository and install gym as a package, as shown in the following screenshot:

主站蜘蛛池模板: 镇雄县| 五河县| 夏邑县| 资中县| 新源县| 安康市| 乐安县| 安义县| 伊金霍洛旗| 浙江省| 蒙城县| 元朗区| 上思县| 永丰县| 营口市| 乌审旗| 长顺县| 霍山县| 右玉县| 台南县| 垦利县| 丘北县| 定州市| 桐柏县| 天祝| 木里| 肃宁县| 彭泽县| 上犹县| 沙坪坝区| 肥乡县| 通辽市| 万载县| 银川市| 伊吾县| 木里| 天柱县| 万盛区| 镇康县| 阿坝县| 普宁市|