- 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.
推薦閱讀
- 輕輕松松自動化測試
- Hands-On Cloud Solutions with Azure
- AWS Administration Cookbook
- 基于單片機的嵌入式工程開發詳解
- Linux:Powerful Server Administration
- Mastering ServiceNow Scripting
- 單片機C語言應用100例
- Salesforce for Beginners
- 單片機C語言程序設計完全自學手冊
- LMMS:A Complete Guide to Dance Music Production Beginner's Guide
- 工業機器人集成應用
- 筆記本電腦使用與維護
- Hands-On Business Intelligence with Qlik Sense
- 玩轉PowerPoint
- Getting Started with Tableau 2019.2