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

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.

主站蜘蛛池模板: 白城市| 成武县| 本溪市| 五大连池市| 松原市| 房山区| 济阳县| 惠水县| 遵义市| 南阳市| 信阳市| 深州市| 申扎县| 湖州市| 宣威市| 康平县| 花莲县| 从化市| 青海省| 涟水县| 芷江| 宜丰县| 揭西县| 南华县| 邢台县| 万全县| 平湖市| 宁河县| 碌曲县| 巴中市| 浦江县| 蒲城县| 九江市| 丰原市| 樟树市| 柳江县| 葫芦岛市| 衢州市| 霍山县| 长寿区| 雷波县|