Nope. As @Wolfgang_S indicates, installing a Python library as a regular user installs it only for that user. You can install it as root
which globally installs the library but if you are on bookworm that’s been disabled. So you’ll either need to install it as user openhab
or create a virtualenv like @Wolfgang_S describes.
To install it as the openHAB user use sudo -u openhab pip install aiotractive
Besides the supply chain issues with package managers like pip and npm, are there other reasons you’ve read not to use pip?
The openhab
user account quite deliberately does not have a password nor does it have a shell. You cannot log in as the openhab
user. But you can use sudo
to run a command as any user.