ModulenotFoundError: Kein Modul namens 'Pydantic_core._pydantic_core', obwohl Pydantic-Core installiert istPython

Python-Programme
Anonymous
 ModulenotFoundError: Kein Modul namens 'Pydantic_core._pydantic_core', obwohl Pydantic-Core installiert ist

Post by Anonymous »

Ich verwende einen Docker-Container basierend auf Knoten: 20-Alpine und im Inneren Python 3.13. Ich habe meine Python-Pakete mit UV-PIP installiert. Installieren Sie MCP == 1.6.0 .

Code: Select all

from mcp.server import NotificationOptions, Server
< /code>
Ich erhalte diesen Fehler: < /p>
Traceback (most recent call last):
File "", line 1, in 
File "/app/standalone/.venv/lib/python3.11/site-packages/mcp/__init__.py", line 1, in 
from .client.session import ClientSession
...
File "/app/standalone/.venv/lib/python3.11/site-packages/pydantic_core/__init__.py", line 6, in 
from ._pydantic_core import (
ModuleNotFoundError: No module named 'pydantic_core._pydantic_core'
Aber ich habe bereits Pydantic-Core installiert, wie in UV-PIP-Freeze :
gezeigt

Code: Select all

pydantic==2.11.3
pydantic-core==2.33.1
Weiß jemand, warum dies geschieht oder wie es behoben wird?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post