My Python code running locally starts by importing the following libraries:
import logging
import azure.functions as func
from sendgrid import SendGridAPIClient
from datetime import datetime
import wikipedia
import urllib.request, json
These are also listed in requirements.txt (screenshot). My code runs just fine locally, but once I uploaded to an Azure Function, I get the error (screenshot): ModuleNotFoundError: No module named 'sendgrid'
I have read elsewhere that you might be able to install these modules in a virtual environment through Kudu. But it does not seem that Kudu is supported on a Consumption plan:
How can I run Python code with external modules/libraries in a consumption plan with Azure Functions?