Skip to main content
  • How-to
  • Engineering

How to: installing modules in a Python Azure function

A practical guide to installing Python modules in Azure Functions: including setup tips, dependencies, and deployment considerations from experience.

Apr 1, 2021By Cédric, Erasmushogeschool Brussel
Portrait Of Illuminated Laptop

During an internship at Arinti, this guide was developed while combining Python with Azure to build a specialised application that converts sketches and electrical schema drawings into digital formats.

01

Setting up your environment

Initial setup requires installing Python and Visual Studio Code. Within VS Code, download the Azure Functions and Azure Account extensions from the marketplace. Create or sign into an Azure account through the Azure Functions interface, then generate a new function by selecting Python and your preferred environment.

02

Local installation and deployment caveat

Once the project initialises, open the terminal and install your dependencies (e.g. pip install opencv-python numpy). This lets you use the Azure Function locally.

However, there's a critical limitation: deployment to Azure may generate errors because packages install only locally, not on the Azure platform itself. Additional configuration is required for cloud deployment success.

Want to work together

Project in mind?

Start with a conversation, or with the readiness check. Either way, you talk to the people who build it.