Thanks for the details provided in comments.
The default Python project will force a remote build on deployment. This can be changed, or checked, by looking at the settings.json file in the .vscode directory. The setting: "azureFunctions.scmDoBuildDuringDeployment": true, determiens if you are going to do a remote or local build.
Assuming this is still set to true, you should be using Oryx to do a remote build and installing the packages within the requirements.txt. If you are still seeing errors when doing a remote build, you should confirm that your requirements.txt is setup correctly, and what package(s) you are having issues with. Another thing to confirm is that the local .venv python version matches the python version you are running on the Azure function, mismatches in the python version used to install the modules, and what we are running on in Azure can cause issues with Modules not Found.
I hope this helps!
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

