- Python Reinforcement Learning Projects
- Sean Saito Yang Wenzhuo Rajalingappaa Shanmugamani
- 147字
- 2021-07-23 19:05:06
Installation
The primary interface of the gym is used through Python. Once you have Python3 in an environment with the pip installer, the gym can be installed as follows:
sudo pip install gym
Advanced users that want to modify the source can compile from the source by using the following commands:
git clone https://github.com/openai/gym
cd gym
pip install -e .
A new environment can be added to the gym with the source code. There are several environments that need more dependencies. For macOS, install the dependencies by using the following command:
brew install cmake boost boost-python sdl2 swig wget
For Ubuntu, use the following commands:
apt-get install -y python-numpy python-dev cmake zlib1g-dev libjpeg-dev xvfb libav-tools xorg-dev python-opengl libboost-all-dev libsdl2-dev swig
Once the dependencies are there, install the complete gym as follows:
pip install 'gym[all]'
This will install most of the environments that are required.
推薦閱讀
- GNU-Linux Rapid Embedded Programming
- Getting Started with Clickteam Fusion
- Drupal 7 Multilingual Sites
- 來吧!帶你玩轉Excel VBA
- IoT Penetration Testing Cookbook
- 自動檢測與傳感技術
- TensorFlow Reinforcement Learning Quick Start Guide
- Salesforce for Beginners
- 智能鼠原理與制作(進階篇)
- INSTANT Adobe Story Starter
- Learn Microsoft Azure
- Apache Spark Quick Start Guide
- 時序大數據平臺TDengine核心原理與實戰
- 大學計算機實踐教程
- AlphaGo如何戰勝人類圍棋大師:智能硬件TensorFlow實踐