I have a Python application on my Windows laptop and a SQL database resource set up in Azure Cloud. I've added a pyodbc module to this application, and installed a relevant driver. I am able to get my Python application working with my SQL database in Azure. This works great.
I've tried uploading my Python application to an App Service resource in Azure Cloud, but I've run into a problem. I see the following error in an error log:
from app import SQLServerComm 2020-11-30T10:44:16.178080873Z File "/home/site/wwwroot/app/SQLServerComm.py", line 1, in 2020-11-30T10:44:16.178084673Z import pyodbc 2020-11-30T10:44:16.178088073Z ModuleNotFoundError: No module named 'pyodbc' 2020-11-30T10:44:16.190749473Z
I realize that I have to install the Python module pyodbc in the Azure environment somehow (for instance, to run "pip install pyodbc" and install a driver somewhere). I'm probably missing something obvious in the documentation, but how may I most simply do this?