AttributeError: module 'openai' has no attribute 'ChatCompletion'

Hi @chatgpt711

No, it will work with all 3.7.1+ versions.

There’s no straightforward answer to the problem AFAIK. Could be multiple versions of python, could be improperly installed package.

Can you share the output of the following:

  1. pip --version
  2. python -m pip --version
  3. pip3 --version
1 Like