1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] ImportError: cannot import name 'Iterator' from 'typing_extensions'...

Discussão em 'Python' iniciado por Stack, Setembro 15, 2024.

  1. Stack

    Stack Membro Participativo

    I'm facing the following issue on Azure Databricks when trying to import from openai import OpenAI after installing openai.

    Here's the error:

    ImportError: cannot import name 'Iterator' from 'typing_extensions' (/databricks/python/lib/python3.10/site-packages/typing_extensions.py)


    I looked up similar issues and found that using --force-reinstall like this:

    pip install --force-reinstall typing-extensions==4.5
    pip install --force-reinstall openai==1.8


    Worked for some users. However, it did not work in my case.

    How do I resolve this?

    Continue reading...

Compartilhe esta Página