I installed openai successfully. I also checked it in pip list. But when I wrote import openai
it's showing error (no module named openai). I tried some stackoverflow solutions, but they are not working.
If I run my code it is showing this error message below:
Traceback (most recent call last):
File "/home/al/Projects/python projects/project_name/main.py", line 8, in <module>
import openai
ModuleNotFoundError: No module named 'openai'
Now what is the solution?