Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to solve this problem about pydantic V2? 跑代码在运行web.py时说pydantic版本不对,我使用liunx系统下跑的 #985

Open
JJJJJJX1 opened this issue Feb 2, 2024 · 1 comment

Comments

@JJJJJJX1
Copy link

JJJJJJX1 commented Feb 2, 2024

PydanticImportError: pydantic:parse_raw_as has been removed in V2.

For further information visit https://errors.pydantic.dev/2.6/u/import-error

PyTorch 2.1.0
Python 3.10(ubuntu22.04)
Cuda 12.1

@PenNameLuXun
Copy link

https://docs.pydantic.dev/2.6/migration/#continue-using-pydantic-v1-features
直接安装pip install "pydantic==1.*"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants