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

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:

主站蜘蛛池模板: 新蔡县| 民县| 读书| 高台县| 嵊州市| 舒城县| 济源市| 威信县| 密云县| 温州市| 阿尔山市| 宜阳县| 稻城县| 浪卡子县| 阿克陶县| 郸城县| 双江| 修水县| 鸡西市| 康平县| 阿拉尔市| 建水县| 将乐县| 黄大仙区| 丰城市| 堆龙德庆县| 扶绥县| 海安县| 普兰县| 陵川县| 漳平市| 印江| 临高县| 阿勒泰市| 肇州县| 楚雄市| 马公市| 台州市| 靖江市| 海宁市| 南岸区|