Skip to main content

Azure Function python ModuleNotFoundError from Visual Studio Code

Author by Nathan Lasnoski

I was working on creating an Azure Function to download an image from Azure Blob Storage and return certain EXIF values. I had loaded some modules but for some reason they weren’t functioning properly in the Azure Function once deployed. I found out that I needed to update my requriements.txt file via pip (after much digging).


Here’s what you run, in the terminal of Visual Studio Code:

pip freeze > requirements.txt


THEN… proceed to deploy your function into Azure Functions.


Nathan Lasnoski

Chief Technology Officer