[Python] ERROR ImportError: cannot import name 'Anthropic' from 'anthropic'

Discussão em 'Python' iniciado por Stack, Outubro 1, 2024.

  1. Stack

    Stack Membro Participativo

    Can some one help to fix this

    from anthropic import Anthropic
    client = instructor.fromanthropic(Anthropic())


    ERROR ImportError: cannot import name 'Anthropic' from 'anthropic' (/usr/local/lib/python3.10/dist-packages/anthropic/_init.py)


    version instructor==1.3.7 anthropic==0.2.8

    Reference: https://python.useinstructor.com/#using-openai

    installed instructor==1.3.7 anthropic==0.2.8

    Continue reading...

Compartilhe esta Página