ThomasVuNguyen / chatGPT-Voice-Assistant

A Raspberry Pi voice assistant built with ChatGPT
58 stars 16 forks source link

unable to run python script #4

Open vass7 opened 5 months ago

vass7 commented 5 months ago

Hey im pretty new to coding and stuff. I have a problem when trying to run the python script. When trying to run Python3 gpt.py is says

"Traceback (most recent call last): File "/home/vass7/gpt.py", line 2, in import openai Modulenotfounderror: No module named "openai"

I don't understand how to fix this, i have checked the code several times and tried to make new ones but i still get the same problem.

ThomasVuNguyen commented 3 months ago

Have you installed the openai package?

Saamsundar commented 3 months ago

I am also experiencing the same problem when try to run the program in my raspberry pi 4. I have already installed all the necessary modules including openai. pls give me a solution as i am new to coding.

ThomasVuNguyen commented 3 months ago

Did you use pip3 to install the modules & python3 to run the python script? Maybe try python2 also.

Let me know if there's still problems

Saamsundar commented 3 months ago

Thank you for your immediate response I will contact you if there are any issues

ThomasVuNguyen commented 3 months ago

Certainly! Happy to help