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

推薦閱讀
- Developing Mobile Games with Moai SDK
- 復(fù)雜性思考:復(fù)雜性科學(xué)和計(jì)算模型(原書第2版)
- Architects of Intelligence
- Live Longer with AI
- 大數(shù)據(jù):規(guī)劃、實(shí)施、運(yùn)維
- 達(dá)夢(mèng)數(shù)據(jù)庫(kù)性能優(yōu)化
- OracleDBA實(shí)戰(zhàn)攻略:運(yùn)維管理、診斷優(yōu)化、高可用與最佳實(shí)踐
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)教程上機(jī)指導(dǎo)與習(xí)題集(微課版)
- 大數(shù)據(jù)分析:數(shù)據(jù)倉(cāng)庫(kù)項(xiàng)目實(shí)戰(zhàn)
- 貫通SQL Server 2008數(shù)據(jù)庫(kù)系統(tǒng)開(kāi)發(fā)
- 從實(shí)踐中學(xué)習(xí)sqlmap數(shù)據(jù)庫(kù)注入測(cè)試
- 改變未來(lái)的九大算法
- 數(shù)據(jù)分析思維:產(chǎn)品經(jīng)理的成長(zhǎng)筆記
- 智能與數(shù)據(jù)重構(gòu)世界
- Practical Convolutional Neural Networks