Update Anaconda support (#228)
conda install -c conda-forge tianshou Related PR: conda-forge/staged-recipes#12719
This commit is contained in:
parent
83bd1ec9e2
commit
d87d31a705
27
README.md
27
README.md
@ -5,6 +5,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
[](https://pypi.org/project/tianshou/)
|
[](https://pypi.org/project/tianshou/)
|
||||||
|
[](https://github.com/conda-forge/tianshou-feedstock)
|
||||||
[](https://tianshou.readthedocs.io/en/latest)
|
[](https://tianshou.readthedocs.io/en/latest)
|
||||||
[](https://tianshou.readthedocs.io/zh/latest/)
|
[](https://tianshou.readthedocs.io/zh/latest/)
|
||||||
[](https://github.com/thu-ml/tianshou/actions)
|
[](https://github.com/thu-ml/tianshou/actions)
|
||||||
@ -13,7 +14,7 @@
|
|||||||
[](https://github.com/thu-ml/tianshou/stargazers)
|
[](https://github.com/thu-ml/tianshou/stargazers)
|
||||||
[](https://github.com/thu-ml/tianshou/network)
|
[](https://github.com/thu-ml/tianshou/network)
|
||||||
[](https://github.com/thu-ml/tianshou/blob/master/LICENSE)
|
[](https://github.com/thu-ml/tianshou/blob/master/LICENSE)
|
||||||
[](https://gitter.im/thu-ml/tianshou?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
[](https://gitter.im/thu-ml/tianshou?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||||
|
|
||||||
**Tianshou** ([天授](https://baike.baidu.com/item/%E5%A4%A9%E6%8E%88)) is a reinforcement learning platform based on pure PyTorch. Unlike existing reinforcement learning libraries, which are mainly based on TensorFlow, have many nested classes, unfriendly API, or slow-speed, Tianshou provides a fast-speed modularized framework and pythonic API for building the deep reinforcement learning agent with the least number of lines of code. The supported interface algorithms currently include:
|
**Tianshou** ([天授](https://baike.baidu.com/item/%E5%A4%A9%E6%8E%88)) is a reinforcement learning platform based on pure PyTorch. Unlike existing reinforcement learning libraries, which are mainly based on TensorFlow, have many nested classes, unfriendly API, or slow-speed, Tianshou provides a fast-speed modularized framework and pythonic API for building the deep reinforcement learning agent with the least number of lines of code. The supported interface algorithms currently include:
|
||||||
|
|
||||||
@ -50,28 +51,24 @@ In Chinese, Tianshou means divinely ordained and is derived to the gift of being
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Tianshou is currently hosted on [PyPI](https://pypi.org/project/tianshou/). It requires Python >= 3.6. You can simply install Tianshou with the following command:
|
Tianshou is currently hosted on [PyPI](https://pypi.org/project/tianshou/) and [conda-forge](https://github.com/conda-forge/tianshou-feedstock). It requires Python >= 3.6.
|
||||||
|
|
||||||
|
You can simply install Tianshou from PyPI with the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ pip install tianshou
|
$ pip install tianshou
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you use Anaconda or Miniconda, you can install Tianshou from conda-forge through the following command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ conda -c conda-forge install tianshou
|
||||||
|
```
|
||||||
|
|
||||||
You can also install with the newest version through GitHub:
|
You can also install with the newest version through GitHub:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# latest version
|
$ pip install git+https://github.com/thu-ml/tianshou.git@master --upgrade
|
||||||
$ pip install git+https://github.com/thu-ml/tianshou.git@master
|
|
||||||
```
|
|
||||||
|
|
||||||
If you use Anaconda or Miniconda, you can install Tianshou through the following command lines:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# create a new virtualenv and install pip, change the env name if you like
|
|
||||||
$ conda create -n myenv pip
|
|
||||||
# activate the environment
|
|
||||||
$ conda activate myenv
|
|
||||||
# install tianshou
|
|
||||||
$ pip install tianshou
|
|
||||||
```
|
```
|
||||||
|
|
||||||
After installation, open your python console and type
|
After installation, open your python console and type
|
||||||
|
@ -41,29 +41,25 @@ Here is Tianshou's other features:
|
|||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
|
|
||||||
Tianshou is currently hosted on `PyPI <https://pypi.org/project/tianshou/>`_. You can simply install Tianshou with the following command (with Python >= 3.6):
|
Tianshou is currently hosted on `PyPI <https://pypi.org/project/tianshou/>`_ and `conda-forge <https://github.com/conda-forge/tianshou-feedstock>`_. It requires Python >= 3.6.
|
||||||
|
|
||||||
|
You can simply install Tianshou from PyPI with the following command:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ pip install tianshou
|
$ pip install tianshou
|
||||||
|
|
||||||
|
If you use Anaconda or Miniconda, you can install Tianshou from conda-forge through the following command:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
$ conda -c conda-forge install tianshou
|
||||||
|
|
||||||
You can also install with the newest version through GitHub:
|
You can also install with the newest version through GitHub:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
# latest version
|
$ pip install git+https://github.com/thu-ml/tianshou.git@master --upgrade
|
||||||
$ pip install git+https://github.com/thu-ml/tianshou.git@master
|
|
||||||
|
|
||||||
If you use Anaconda or Miniconda, you can install Tianshou through the following command lines:
|
|
||||||
|
|
||||||
.. code-block:: bash
|
|
||||||
|
|
||||||
# create a new virtualenv and install pip, change the env name if you like
|
|
||||||
$ conda create -n myenv pip
|
|
||||||
# activate the environment
|
|
||||||
$ conda activate myenv
|
|
||||||
# install tianshou
|
|
||||||
$ pip install tianshou
|
|
||||||
|
|
||||||
After installation, open your python console and type
|
After installation, open your python console and type
|
||||||
::
|
::
|
||||||
|
Loading…
x
Reference in New Issue
Block a user