Import pantilhat module not found in python3.7

Hello

I have installed pimoroni --> sudo apt-get install pimoroni
I have installed the pantihat from pimoroni-dashboar (HAT and pantilhat)

when I go into python in my env (my-env) and I insert :
import pantilhat --> An error comes up --> ModuleNotFoundError : no module name ‘pantilhat’

my python version is 3.7.3 in a rpi 3 model b and my env is my-env.

can you support me?

thanks

Oscar

Try
curl https://get.pimoroni.com/pantilthat | bash
and then see if you get the same error.
I have two full pan tilt kits, I test them from idle3 in PiOS after I get them. I use them with Motion Eye OS.
My test code is as follows

from picamera import PiCamera
from time import sleep
import pantilthat


pantilthat.pan(0)
pantilthat.tilt(0)




camera = PiCamera()
camera.rotation = 180
camera.resolution = (1280, 720)

camera.start_preview()
sleep(10)
camera.stop_preview()

It’s been a while since I have done this though. idle3 runs the code in python3.