Error: ModuleNotFoundError: No module named ‘openai’

I’ve already installed python openai library and I can find the folder in my computer, but when I run “python openai-test.py” in terminal, it shows that "ModuleNotFoundError: No module named ‘openai’ "

I fixed this problem by mv my openai-test.py to /Users/xxx/openai-env/lib/python3.8/site-packages/ same with the dir of ‘openai’ , it’s works for me.

1 Like

this worked for me too - thanks @gloriaJ