.. _install:
************
Installation
************
Via pipenv or pip (Recommended)
===============================
To install py-stellar-base, use pipenv to install the module:
.. code-block:: text
pipenv install stellar-sdk
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 .