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

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.

主站蜘蛛池模板: 句容市| 错那县| 新绛县| 曲麻莱县| 四会市| 阳泉市| 清丰县| 康乐县| 萝北县| 平舆县| 峡江县| 南平市| 津市市| 广东省| 石台县| 奉贤区| 襄垣县| 伽师县| 华池县| 资源县| 通许县| 乌兰浩特市| 濉溪县| 平安县| 夏河县| 剑河县| 日照市| 铜川市| 开封市| 车险| 登封市| 万宁市| 潞城市| 建平县| 茂名市| 盐津县| 磐石市| 勐海县| 安康市| 沁源县| 恩施市|