Run a python script

A little bit confused. Want to run an epson-eiscp commands from https://github.com/miracle2k/onkyo-eiscp
It states that it is a
This is a Python library to control and interact with Onkyo receivers over the network. It is also a ready-made command line script you can use without knowing how to program.

So i wonder where should i install it. Should it be under pi user or it is better of going into virtual enviroment and installing it there under homeassistant user?

It should be under home-assistant user as it’s that user that will be executing the script/command line.

Thanks. Guess this is not the right board to ask - but this time nothing is working. Maybe somebody here can help. Are there any steps to be taken outside the virtual enviroment?

Ran under the virtual enviroment

(homeassistant_venv) homeassistant@home:/$ pip3 install --upgrade onkyo-eiscp
Collecting onkyo-eiscp
Requirement already up-to-date: docopt>=0.4.1 in /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/docopt-0.6.2-py3.4.egg (from onkyo-eiscp)
Requirement already up-to-date: netifaces in /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/netifaces-0.10.5-py3.4-linux-armv7l.egg (from onkyo-eiscp)
Installing collected packages: onkyo-eiscp
Successfully installed onkyo-eiscp-1.0

Afterwards

(homeassistant_venv) homeassistant@home:/$ onkyo --discover
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/bin/onkyo", line 7, in <module>
from eiscp.script import run
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/eiscp/__init__.py", line 6, in <module>
from core import eISCP
ImportError: No module named 'core'

Still can’t solve the problem with core not found. This wasn’t the case when i ran HA on a debian.

Did you solve this?
I just installed Onkyo eiscp in the same virtual environment as home assistant.
Earlier i hade onkyo eiscp outside of the virtual environment.
Created file.py and launched it with python3 file.py from hass. This worked fine.

But now, when it is in the virtual environment i can’t launch the file.

file.py looks like this

import eiscp

# Create a receiver object, connecting to the host
receiver = eiscp.eISCP('192.168.1.10')

# Turn the receiver on, select PC input
receiver.command('zone2.power=on')
receiver.command('zone2.volume=40')
receiver.command('zone2.selector=pc')

receiver.disconnect()

If I try it from command line it works if i enter my virtual environment first