parent
e0b7d2f739
commit
2066fff994
1 changed files with 17 additions and 9 deletions
|
|
@ -13,21 +13,29 @@ By default, LNbits will use SQLite as its database. You can also use PostgreSQL
|
||||||
## Option 1 (recommended): poetry
|
## Option 1 (recommended): poetry
|
||||||
|
|
||||||
Mininum poetry version has is ^1.2, but it is recommended to use latest poetry. (including OSX)
|
Mininum poetry version has is ^1.2, but it is recommended to use latest poetry. (including OSX)
|
||||||
|
Make sure you have Python 3.9 or 3.10 installed.
|
||||||
|
|
||||||
|
### install python on ubuntu
|
||||||
|
```sh
|
||||||
|
# for making sure python 3.9 is installed, skip if installed. To check your installed version: python3 --version
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install software-properties-common
|
||||||
|
sudo add-apt-repository ppa:deadsnakes/ppa
|
||||||
|
sudo apt install python3.9 python3.9-distutils
|
||||||
|
```
|
||||||
|
|
||||||
|
### install poetry
|
||||||
|
```sh
|
||||||
|
curl -sSL https://install.python-poetry.org | python3 -
|
||||||
|
# Once the above poetry install is completed, use the installation path printed to terminal and replace in the following command
|
||||||
|
export PATH="/home/user/.local/bin:$PATH"
|
||||||
|
```
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/lnbits/lnbits.git
|
git clone https://github.com/lnbits/lnbits.git
|
||||||
cd lnbits
|
cd lnbits
|
||||||
git checkout main
|
git checkout main
|
||||||
|
|
||||||
# for making sure python 3.9 is installed, skip if installed. To check your installed version: python3 --version
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install software-properties-common
|
|
||||||
sudo add-apt-repository ppa:deadsnakes/ppa
|
|
||||||
sudo apt install python3.9 python3.9-distutils
|
|
||||||
|
|
||||||
curl -sSL https://install.python-poetry.org | python3 -
|
|
||||||
# Once the above poetry install is completed, use the installation path printed to terminal and replace in the following command
|
|
||||||
export PATH="/home/user/.local/bin:$PATH"
|
|
||||||
# Next command, you can exchange with python3.10 or newer versions.
|
# Next command, you can exchange with python3.10 or newer versions.
|
||||||
# Identify your version with python3 --version and specify in the next line
|
# Identify your version with python3 --version and specify in the next line
|
||||||
# command is only needed when your default python is not ^3.9 or ^3.10
|
# command is only needed when your default python is not ^3.9 or ^3.10
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue