I have tried for hours to run this short Python program and keep getting " from openai import OpenAI
ModuleNotFoundError: No module named ‘openai’"
my python version is 3.12.1 and openai is 1.7.2
I have read the threads here on this topic. Any suggestions?
Thanks
1 Like
Diet
January 12, 2024, 9:09pm
2
Hi! Welcome to the forums!
Are you using jupyter? did you install it into the correct environment? sometimes you need to restart the kernel or the whole shell for it to work.
2 Likes
ab3838
January 12, 2024, 10:23pm
3
hmm… I use
import openai
thats all. I#m not sure is your statement right
emkiser
January 13, 2024, 12:40am
4
:
jupyter
Hi Diet,
Jupyter is enabled but I’m not using it.
Thx
cyzgab
January 13, 2024, 1:06am
5
Welcome to the forum!
Do you have another file called “openai.py” in the same folder?
1 Like
I am still getting " from openai import OpenAI
ModuleNotFoundError: No module named ‘openai’" when I run my Python app. Am I the only one getting this now? Why am I getting this?
Thanks!