ZmEventNotification: how to use a python virtual environment instead of system python

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
Post Reply
bzzmid
Posts: 2
Joined: Sat Aug 17, 2024 11:10 am

ZmEventNotification: how to use a python virtual environment instead of system python

Post by bzzmid »

Hello to all,

I've googled around but I've not found anything relevant: in case it was right beneath my eyes, I'm sorry.

I'd like to install zmeventnotification in such a way it can use a custom python virtual environment (with all the packets ZM ES needs) instead of the default system-wide installation of python.

I've noticed that the first two lines of install.sh are:

Code: Select all

PYTHON=${PYTHON:-python3}
PIP=${PIP:-pip3}
I was wondering whether it would be enough to hard edit the two variables to the path to a custom virtual environment. Is there anything else that should be edited and I'm not aware of?

Thank you in advance
Post Reply