|
3 years ago | |
---|---|---|
docs | 10 years ago | |
nilmrun | 3 years ago | |
scripts | 3 years ago | |
tests | 3 years ago | |
.coveragerc | 10 years ago | |
.gitattributes | 3 years ago | |
.gitignore | 3 years ago | |
MANIFEST.in | 3 years ago | |
Makefile | 3 years ago | |
README.md | 3 years ago | |
data.js | 10 years ago | |
requirements.txt | 3 years ago | |
setup.cfg | 3 years ago | |
setup.py | 3 years ago | |
versioneer.py | 3 years ago |
by Jim Paris jim@jtan.com
# Runtime and build environments
sudo apt-get install python3
# 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
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
nilmrun-server --help
See docs/wsgi.md for info on setting up a WSGI application in Apache.