Goggle Cloud Ubuntu Virtual Machine kiteconnect error

WN1867
Hi, i have created ubuntu virtual machine on google cloud server along with python 2.7. kiteconnect is installed in that machine using "sudo pip install kiteconnect" but while executing my python code it throws below following error:
>>from kiteconnect import KiteConnect
ModuleNotFoundError: No module named kiteconnect
Please help me regarding this issue.
Tagged:
  • zartimus
    @WN1867 After doing `pip install kiteconnect`, confirm the location with `pip show kiteconnect`
    There could be multiple python versions.
  • tahseen
    @WN1867 you should either use virtualenv or conda to create environment instead of sudo pip
  • WN1867
    Actually, it was due to a different python version on the cloud, which i fixed by correctly installing kite connect using pip3 install kiteconnect
Sign In or Register to comment.