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

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.

主站蜘蛛池模板: 肥东县| 从化市| 云霄县| 托克托县| 嘉定区| 宜丰县| 肃南| 三明市| 沭阳县| 成安县| 邢台市| 绥德县| 丹江口市| 麻城市| 建德市| 平遥县| 香河县| 西青区| 内江市| 河曲县| 佛冈县| 德清县| 烟台市| 天祝| 台前县| 宾川县| 涟水县| 慈利县| 建水县| 静安区| 晴隆县| 凤山市| 临清市| 砚山县| 鸡西市| 鱼台县| 卓尼县| 奉节县| 天峨县| 子洲县| 永昌县|