update pylightning readme installation informations

This commit is contained in:
gdassori 2018-01-27 17:14:37 +01:00 committed by Christian Decker
parent 825ccb33a6
commit 67dbe71dfa
1 changed files with 8 additions and 2 deletions

View File

@ -2,16 +2,22 @@
### Installation
You need to have the futures python library installed to be able to use pylightning:
Note: With Python 2 you need to have the futures python library installed to be able to use pylightning:
```
pip install futures
```
pylightning is available on pip
```
pip install pylightning
```
### Example
```py
from pylightning import LightningRpc
from lightning import LightningRpc
import random
# Create two instances of the LightningRpc object using two different c-lightning daemons on your computer