Good morning, currently we use the python:3.7-slim with an architecture of amr64, we use libpq-dev, in the container it has version 13.5-0+deb11u1 but when using it with python I used version 90624 of libpq-dev, already We try to update it by downloading and installing the binary package to modify the version but it does not update the version used in python.
python console in docker container

version installed libpq-dev in container

for your time, thank you