|
2 years ago | |
---|---|---|
docs | 3 years ago | |
extras | 2 years ago | |
nilmdb | 2 years ago | |
tests | 2 years ago | |
.coveragerc | 3 years ago | |
.gitattributes | 10 years ago | |
.gitignore | 3 years ago | |
MANIFEST.in | 3 years ago | |
Makefile | 3 years ago | |
README.md | 2 years ago | |
requirements.txt | 2 years ago | |
setup.cfg | 2 years ago | |
setup.py | 2 years ago | |
versioneer.py | 3 years ago |
by Jim Paris jim@jtan.com
NilmDB requires Python 3.8 or newer.
# Runtime and build environments
sudo apt install python3 python3-dev python3-venv python3-pip
# Create a new Python virtual environment to isolate deps.
python3 -m venv ../venv
source ../venv/bin/activate # run "deactivate" to leave
# Install all Python dependencies
pip3 install -r requirements.txt
python3 setup.py nosetests
Install it into the virtual environment
python3 setup.py install
If you want to instead install it system-wide, you will also need to install the requirements system-wide:
sudo pip3 install -r requirements.txt
sudo python3 setup.py install
nilmdb-server --help
nilmdb-fsck --help
nilmtool --help
See docs/wsgi.md for info on setting up a WSGI application in Apache.