安装¶
通过 pipenv 或 pip 安装¶
通过 pipenv 来安装 Stellar Python SDK :
pipenv install stellar-sdk==2.13.0
我们推荐你使用 pipenv 来安装这个模块。当然你也可以使用 pip。 想要更多的了解如何安装依赖,请参阅 Hitchhiker’s Guide to Python。
通过源码安装¶
请尽可能使用上述方法安装。最新的代码可能不稳定。
你可以先克隆 这个仓库,然后通过源码安装 SDK:
git clone https://github.com/StellarCN/py-stellar-base.git
cd py-stellar-base
git checkout 2.13.0
pip install .