pythonpip

How to resolve FastApi and pydantic mismatch? you have pydantic 2.10.6 which is incompatible


I am trying to install jobspy pip install -U python-jobspy

I am ending in the loop of dependacies failing all the time.

     Successfully uninstalled pydantic-1.10.21
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
fastapi 0.70.0 requires pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2, but you have pydantic 2.10.6 which is incompatible.
Successfully installed pydantic-2.10.6

what is the solution? pip does not work,may be venv.

I want to have jobspy.


Solution

  • The install just worked for me, from a clean Python 3.12 venv.

    After pip install python-jobspy fastapi, I ended up with

    fastapi==0.115.7
    pydantic==2.10.6
    python-jobspy==1.1.76
    

    (among other packages required by these, including numpy and pandas)