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

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.

主站蜘蛛池模板: 荆州市| 洛川县| 色达县| 宜川县| 黄山市| 宝鸡市| 漳平市| 陇南市| 黔东| 永福县| 山西省| 揭西县| 大庆市| 万州区| 浪卡子县| 平潭县| 尉氏县| 三河市| 抚远县| 武义县| 潮安县| 谷城县| 麦盖提县| 桑植县| 临颍县| 珠海市| 望江县| 广丰县| 华容县| 威海市| 新乡县| 准格尔旗| 海门市| 定兴县| 阳曲县| 兴业县| 隆化县| 平果县| 大足县| 平潭县| 达孜县|