Skip to content

Commit

Permalink
update INSTALL.md for venv based installs
Browse files Browse the repository at this point in the history
  • Loading branch information
accumulator committed Dec 6, 2023
1 parent e3658d2 commit daa1a83
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,21 @@ Python and PIP should be made available on the system before installing from sou
The project and its dependencies can be installed by running (don't forget the last dot):

```
$ pip install -r requirements.txt .
$ pip3 install -r requirements.txt .
```

On some systems using Python 3, use pip3 instead:
When running the install as `root`, `charge-lnd` will be installed to `/usr/local/bin`. Otherwise `charge-lnd` will be installed to `$HOME/.local/bin`.

On newer systems [PEP-668](https://peps.python.org/pep-0668/) is enforced, you need to install to a virtual environment:

```
$ pip3 install -r requirements.txt .
$ export CHARGE_LND_ENV=/opt/charge-lnd
$ python3 -m venv ${CHARGE_LND_ENV}
$ ${CHARGE_LND_ENV}/bin/pip3 install -r requirements.txt .
```

When running the install as `root`, `charge-lnd` will be installed to `/usr/local/bin`. Otherwise `charge-lnd` will be installed to `$HOME/.local/bin`.
`charge-lnd` will be installed to `${CHARGE_LND_ENV}/bin`


## Install using docker image

Expand Down

0 comments on commit daa1a83

Please sign in to comment.