<!DOCTYPE html> <html class="writer-html5" lang="en" > <head> <meta charset="utf-8" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Installation — Fancy Gym 0.2 documentation</title> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" /> <link rel="stylesheet" href="../_static/style.css" type="text/css" /> <link rel="shortcut icon" href="../_static/icon.svg"/> <!--[if lt IE 9]> <script src="../_static/js/html5shiv.min.js"></script> <![endif]--> <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> <script src="../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../_static/doctools.js"></script> <script src="../_static/sphinx_highlight.js"></script> <script src="../_static/js/theme.js"></script> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="What is Episodic RL?" href="episodic_rl.html" /> <link rel="prev" title="Fancy Gym" href="../index.html" /> </head> <body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-scroll"> <div class="wy-side-nav-search" > <a href="../index.html" class="icon icon-home"> Fancy Gym <img src="../_static/icon.svg" class="logo" alt="Logo"/> </a> <div class="version"> 0.2 </div> <div role="search"> <form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" aria-label="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu"> <p class="caption" role="heading"><span class="caption-text">User Guide</span></p> <ul class="current"> <li class="toctree-l1 current"><a class="current reference internal" href="#">Installation</a><ul> <li class="toctree-l2"><a class="reference internal" href="#installation-from-pypi-recommended">Installation from PyPI (recommended)</a></li> <li class="toctree-l2"><a class="reference internal" href="#installation-from-master">Installation from master</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="episodic_rl.html">What is Episodic RL?</a></li> <li class="toctree-l1"><a class="reference internal" href="basic_usage.html">Basic Usage</a></li> <li class="toctree-l1"><a class="reference internal" href="upgrading_envs.html">Creating new MP Environments</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">Environments</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../envs/fancy/index.html">Fancy</a></li> <li class="toctree-l1"><a class="reference internal" href="../envs/dmc.html">DeepMind Control (DMC)</a></li> <li class="toctree-l1"><a class="reference internal" href="../envs/meta.html">Metaworld</a></li> <li class="toctree-l1"><a class="reference internal" href="../envs/open_ai.html">Gymnasium</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">Examples</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../examples/general.html">General Usage Examples</a></li> <li class="toctree-l1"><a class="reference internal" href="../examples/dmc.html">DeepMind Control Examples</a></li> <li class="toctree-l1"><a class="reference internal" href="../examples/metaworld.html">Metaworld Examples</a></li> <li class="toctree-l1"><a class="reference internal" href="../examples/open_ai.html">OpenAI Envs Examples</a></li> <li class="toctree-l1"><a class="reference internal" href="../examples/movement_primitives.html">Movement Primitives Examples</a></li> <li class="toctree-l1"><a class="reference internal" href="../examples/mp_params_tuning.html">MP Params Tuning Example</a></li> <li class="toctree-l1"><a class="reference internal" href="../examples/pd_control_gain_tuning.html">PD Control Gain Tuning Example</a></li> <li class="toctree-l1"><a class="reference internal" href="../examples/replanning_envs.html">Replanning Example</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">API</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../api.html">API</a></li> </ul> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" > <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../index.html">Fancy Gym</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="Page navigation"> <ul class="wy-breadcrumbs"> <li><a href="../index.html" class="icon icon-home" aria-label="Home"></a></li> <li class="breadcrumb-item active">Installation</li> <li class="wy-breadcrumbs-aside"> <a href="https://github.com/ALRhub/fancy_gym/blob/release/docs/source/guide/installation.rst" class="fa fa-github"> Edit on GitHub</a> </li> </ul> <hr/> </div> <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> <div itemprop="articleBody"> <section id="installation"> <h1>Installation<a class="headerlink" href="#installation" title="Permalink to this heading"></a></h1> <div class="admonition note"> <p class="admonition-title">Note</p> <p>We recommend installing <code class="docutils literal notranslate"><span class="pre">fancy_gym</span></code> into a virtual environment as provided by <a class="reference external" href="https://docs.python.org/3/library/venv.html">venv</a>. 3rd party alternatives to venv like <a class="reference external" href="https://python-poetry.org/">Poetry</a> or <a class="reference external" href="https://docs.conda.io/en/latest/">Conda</a> can also be used.</p> </div> <section id="installation-from-pypi-recommended"> <h2>Installation from PyPI (recommended)<a class="headerlink" href="#installation-from-pypi-recommended" title="Permalink to this heading"></a></h2> <p>Install <code class="docutils literal notranslate"><span class="pre">fancy_gym</span></code> via</p> <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>pip<span class="w"> </span>install<span class="w"> </span>fancy_gym </pre></div> </div> <p>We have a few optional dependencies. If you also want to install those use</p> <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># to install all optional dependencies</span> pip<span class="w"> </span>install<span class="w"> </span><span class="s1">'fancy_gym[all]'</span> <span class="c1"># or choose only those you want</span> pip<span class="w"> </span>install<span class="w"> </span><span class="s1">'fancy_gym[dmc,box2d,mujoco-legacy,jax,testing]'</span> </pre></div> </div> <p>Pip can not automatically install up-to-date versions of metaworld, since they are not avaible on PyPI yet. Install metaworld via</p> <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>pip<span class="w"> </span>install<span class="w"> </span>metaworld@git+https://github.com/Farama-Foundation/Metaworld.git@d155d0051630bb365ea6a824e02c66c068947439#egg<span class="o">=</span>metaworld </pre></div> </div> </section> <section id="installation-from-master"> <h2>Installation from master<a class="headerlink" href="#installation-from-master" title="Permalink to this heading"></a></h2> <ol class="arabic simple"> <li><p>Clone the repository</p></li> </ol> <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>git<span class="w"> </span>clone<span class="w"> </span>git@github.com:ALRhub/fancy_gym.git </pre></div> </div> <ol class="arabic simple" start="2"> <li><p>Go to the folder</p></li> </ol> <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="nb">cd</span><span class="w"> </span>fancy_gym </pre></div> </div> <ol class="arabic simple" start="3"> <li><p>Install with</p></li> </ol> <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>pip<span class="w"> </span>install<span class="w"> </span>-e<span class="w"> </span>. </pre></div> </div> <p>We have a few optional dependencies. If you also want to install those use</p> <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># to install all optional dependencies</span> pip<span class="w"> </span>install<span class="w"> </span>-e<span class="w"> </span><span class="s1">'.[all]'</span> <span class="c1"># or choose only those you want</span> pip<span class="w"> </span>install<span class="w"> </span>-e<span class="w"> </span><span class="s1">'.[dmc,box2d,mujoco-legacy,jax,testing]'</span> </pre></div> </div> <p>Metaworld has to be installed manually with</p> <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>pip<span class="w"> </span>install<span class="w"> </span>metaworld@git+https://github.com/Farama-Foundation/Metaworld.git@d155d0051630bb365ea6a824e02c66c068947439#egg<span class="o">=</span>metaworld </pre></div> </div> </section> </section> </div> </div> <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer"> <a href="../index.html" class="btn btn-neutral float-left" title="Fancy Gym" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> <a href="episodic_rl.html" class="btn btn-neutral float-right" title="What is Episodic RL?" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> </div> <hr/> <div role="contentinfo"> <p>© Copyright 2020-2024, Fabian Otto, Onur Celik, Dominik Roth, Hongyi Zhou.</p> </div> Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <script> jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); </script> </body> </html>