AttributeError: module 'os' has no attribute 'add_dll_directory' when importing "pandas" library
I'm endeavoring to deploy an Azure Function application that relies on various libraries, including numpy, torch, and pandas (you can find all the prerequisites listed in the attached image). While the application runs smoothly on my Ubuntu 22.0.4 laptop, I encounter a persistent issue upon deployment to the remote Azure Function. Specifically, I keep receiving the following error: "AttributeError: module 'os' has no attribute 'add_dll_directory'." I've provided an image displaying these errors for your reference.
In my attempts to resolve this issue, I explored several solutions available online, such as those outlined in https://github.com/confluentinc/confluent-kafka-python/issues/1462 and https://stackoverflow.com/questions/77244413/azure-function-app-error-attributeerror-module-os-has-no-attribute-add-dll, yet none have proven effective thus far. Additionally, I verified that the init.py file within my local pandas installation does not include a line invoking _delvewheel_patch_1_5_1(). Consequently, I suspect that the problem might stem from using an incorrect version of pandas intended for Windows rather than Linux.
"I am grateful for any solution suggestions that could assist me.