ImportError: No module named kiteconnect

Hi, I'm getting the following error while running the under directory examples:
Traceback (most recent call last):
File "/Users/sandy/Documents/Work/KiteConnect/pykiteconnect-kite3/examples/", line 2, in
from kiteconnect import KiteConnect
ImportError: No module named kiteconnect

Although the installation process of kiteconnect package completed successfully and I've got the following file under /Library/Python/2.7/site-packages:
  • sdhariwal_2211
    My OS is macOS High Sierra, version 10.13.6
  • Vivek
    Are you using virtualenv? Seems like you have installed it for system Python but you are trying to use from other Python instances like a virtualenv. You can find this by running a command which python. It can also be permission issue, you might have installed pykiteconnect as a root user but running your script as normal user. If you are not using Virtualenv yet then I will suggest you to use it which will avoid issues like these.
  • sdhariwal_2211
    Things got sorted out once I restarted the "Idle" shell. Could be an environment variable issue. But thanks for the idea of virtualenv, makes sense.
This discussion has been closed.