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

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:

主站蜘蛛池模板: 重庆市| 濮阳县| 苏尼特右旗| 如东县| 洮南市| 景泰县| 安阳县| 绵竹市| 长顺县| 南溪县| 随州市| 海伦市| 伊吾县| 辉县市| 梓潼县| 三江| 金阳县| 苍南县| 大英县| 永川市| 原平市| 全椒县| 通城县| 稻城县| 静宁县| 洛隆县| 孟村| 彩票| 淮安市| 嘉荫县| 九台市| 辽中县| 翁牛特旗| 无锡市| 湖南省| 久治县| 石家庄市| 尤溪县| 黎川县| 辽中县| 西吉县|