author | ms.service | ms.topic | ms.date | ms.author |
---|---|---|---|---|
ggailey777 |
azure-functions |
include |
03/30/2020 |
glenga |
::: zone pivot="programming-language-python"
In a suitable folder, run the following commands to create and activate a virtual environment named .venv
. Be sure to use Python 3.8, 3.7 or 3.6, which are 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