Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.02 KB

File metadata and controls

53 lines (39 loc) · 1.02 KB
author ggailey777
ms.service azure-functions
ms.topic include
ms.date 06/10/2022
ms.author glenga
ms.custom devdivchpfy22

::: zone pivot="programming-language-python"

Create and activate a virtual environment

In a suitable folder, run the following commands to create and activate a virtual environment named .venv. Make sure to use one of the Python versions supported by Azure Functions.

python -m venv .venv
source .venv/bin/activate

If Python didn't install the venv package on your Linux distribution, run the following command:

sudo apt-get install python3-venv
py -m venv .venv
.venv\scripts\activate
py -m venv .venv
.venv\scripts\activate

You run all subsequent commands in this activated virtual environment. ::: zone-end