1

I have a Adafruit PWM hat and I am trying to run play around with some servos. However, when I run this line:

from adafruit_servokit import ServoKit

It returns:

No module named 'adafruit_circuitpython_servokit'

I have already run:

pip3 install adafruit-circuitpython-servokit

After running the above command, it states that all requirements have been satisfied so it doesn't seem as though I am missing any module. Any ideas on what the issue could be?

1 Answers1

1

I installed the module as a normal user without sudo, so it was installed to that user's home directory and not the system. Running the script as root via sudo then meant that installation was not in the import path.

goldilocks
  • 60,325
  • 17
  • 117
  • 234