[Python] Why cannot import pydantic_ai with pydantic_ai in site-packages?

Discussão em 'Python' iniciado por Stack, Julho 4, 2025.

  1. Stack

    Stack Membro Participativo

    Why cannot import pydantic_ai with pydantic_ai in site-packages? enter image description here enter image description here

    "D:\PYTHON PROJ\AIFileAgent.venv\Scripts\python.exe" "D:\PYTHON PROJ\AIFileAgent\test\main.py" Traceback (most recent call last): File "D:\PYTHON PROJ\AIFileAgent\test\main.py", line 2, in import pydantic_ai ModuleNotFoundError: No module named 'pydantic_ai'

    Process finished with exit code 1

    I installed it using 'pip install pydantic-ai' as instructed in the website: https://ai.pydantic.dev/install/

    Nothing seems wrong, still won't work!

    I have python 3.11 only, no other versions

    Continue reading...

Compartilhe esta Página