Thank you for your response
I am using the pre-built binary wheels through pip install lxml
When I looked through the files, I noticed in the path lxml/includes/extlibs that the zlib.h file in that folder says version 1.2.11 for the latest version of lxml which is 4.9.2.
Am I doing something wrong?