| 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"
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 .venvsource .venv/bin/activateIf Python didn't install the venv package on your Linux distribution, run the following command:
sudo apt-get install python3-venvpy -m venv .venv.venv\scripts\activatepy -m venv .venv.venv\scripts\activateYou run all subsequent commands in this activated virtual environment. ::: zone-end