- 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:

推薦閱讀
- Word 2010中文版完全自學手冊
- 大數據可視化
- Python廣告數據挖掘與分析實戰
- “互聯網+”時代立體化計算機組
- Hands-On Mathematics for Deep Learning
- 企業級容器云架構開發指南
- TextMate How-to
- MySQL技術內幕:SQL編程
- SQL Server 2012實施與管理實戰指南
- Unity 2018 By Example(Second Edition)
- R Machine Learning Essentials
- Access數據庫開發從入門到精通
- Internet of Things with Python
- MySQL技術內幕:InnoDB存儲引擎
- AndEngine for Android Game Development Cookbook