PyMongo error with server api


I do a transfer of a python script from a server to another and i get this error:

ModuleNotFoundError: No module named ‘pymongo.server_api’

Pymongo is installed

Do you know why i got that?

Is it the same pymongo version and MongoDB version? The server_api is a newer feature with v5.0 and new in pymongo 3.12 so maybe you need to update?

Okay thanks men !
Its strange because this pymongo was installed yesterday lmao

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.