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

  • Python Reinforcement Learning
  • Sudharsan Ravichandiran Sean Saito Rajalingappaa Shanmugamani Yang Wenzhuo
  • 148字
  • 2021-06-24 15:17:27

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:

主站蜘蛛池模板: 汉川市| 蓬安县| 米泉市| 常山县| 永泰县| 辽阳市| 鹿邑县| 四平市| 剑河县| 建平县| 宣汉县| 墨玉县| 马尔康县| 黎川县| 肃南| 平塘县| 伽师县| 房产| 陈巴尔虎旗| 冕宁县| 北流市| 邯郸县| 屯门区| 马公市| 奈曼旗| 麦盖提县| 宾川县| 吴旗县| 陇川县| 彭山县| 巴东县| 读书| 郯城县| 阜阳市| 兴义市| 萍乡市| 浪卡子县| 新宁县| 张家口市| 西平县| 柳江县|