Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError No module named 'openai' #43

Open
lopugit opened this issue May 7, 2024 · 2 comments
Open

ModuleNotFoundError No module named 'openai' #43

lopugit opened this issue May 7, 2024 · 2 comments

Comments

@lopugit
Copy link

lopugit commented May 7, 2024

I seem to be getting this error πŸ€”

I think it's a python env issue but I'm not sure?

➜  v6 git:(feature/DDA-2350-V6-components) βœ— # testTraceback (most recent call last):
  File "/Users/lopu/.oh-my-zsh/custom/plugins/zsh_codex/create_completion.py", line 3, in <module>
    from openai import OpenAI
ModuleNotFoundError: No module named 'openai'
@lopugit
Copy link
Author

lopugit commented May 7, 2024

Hmm, overwriting python's env system fixed it but I don't think that's an ideal solution

pip3 install openai --break-system-packages

Not sure why it just suddenly stopped working, maybe I updated python or pip ??

@tom-doerr
Copy link
Owner

Yeah not sure what's going on there. Sometimes it helps to to python3 -m pip install ...., but I think this might not be one of those cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants