.. _install:
************
Installation
************
Via pipenv or pip (Recommended)
===============================
To install py-stellar-base, use pipenv to install the module, there are two packages here, please choose one of them:
* The package is built automatically by Travis-CI. |stellar-sdk-image|
.. |stellar-sdk-image| image:: https://img.shields.io/pypi/v/stellar-sdk.svg?style=flat-square&maxAge=1800
:alt: PyPI
:target: https://pypi.python.org/pypi/stellar-sdk
.. code-block:: text
pip install -U stellar-sdk
* The package is maintained by antb123. |stellar-base-image|
.. |stellar-base-image| image:: https://img.shields.io/pypi/v/stellar-base.svg?style=flat-square&maxAge=1800
:alt: PyPI
:target: https://pypi.python.org/pypi/stellar-base
.. code-block:: text
pip install -U stellar-base
If you're not using `pipenv `_, you should.
Otherwise, you can install it via plain old ``pip``. More on installing Python
and dependencies can be found over in the `Hitchhiker's Guide to Python
`_.
Via Source Code
===============
Please use the code on pypi whenever possible. The latest code may be unstable.
You can install it from source code via pip:
.. code-block:: bash
pip install -U git+git://github.com/StellarCN/py-stellar-base
And you can always clone `the repository `_ directly, and install it locally:
.. code-block:: bash
git clone https://github.com/StellarCN/py-stellar-base.git
cd py-stellar-base
pip install .