diff --git a/1-getting-started/lessons/1-introduction-to-iot/virtual-device.md b/1-getting-started/lessons/1-introduction-to-iot/virtual-device.md index dbda7c91..ec101791 100644 --- a/1-getting-started/lessons/1-introduction-to-iot/virtual-device.md +++ b/1-getting-started/lessons/1-introduction-to-iot/virtual-device.md @@ -55,11 +55,18 @@ Configure a Python virtual environment and install the pip packages for CounterF 1. Activate the virtual environment: - * On Windows run: + * On Windows: + * If you are using the Command Prompt, or the Command Prompt through Windows Terminal, run: - ```cmd - .venv\Scripts\activate.bat - ``` + ```cmd + .venv\Scripts\activate.bat + ``` + + * If you are using PowerShell, run: + + ```powershell + .\.venv\Scripts\Activate.ps1 + ``` * On macOS or Linux, run: @@ -67,6 +74,8 @@ Configure a Python virtual environment and install the pip packages for CounterF source ./.venv/bin/activate ``` + > 💁 These commands should be run from the same location you ran the command to create the virtual environment. You will never need to navigate into the `.venv` folder, you should always run the activate command and any commands to install packages or run code from the folder you were in when you created the virtual environment. + 1. Once the virtual environment has been activated, the default `python` command will run the version of Python that was used to create the virtual environment. Run the following to get the version: ```sh diff --git a/1-getting-started/lessons/4-connect-internet/README.md b/1-getting-started/lessons/4-connect-internet/README.md index 475239f8..0e5ce310 100644 --- a/1-getting-started/lessons/4-connect-internet/README.md +++ b/1-getting-started/lessons/4-connect-internet/README.md @@ -178,11 +178,18 @@ Configure a Python virtual environment and install the MQTT pip packages. 1. Activate the virtual environment: - * On Windows run: + * On Windows: + * If you are using the Command Prompt, or the Command Prompt through Windows Terminal, run: - ```cmd - .venv\Scripts\activate.bat - ``` + ```cmd + .venv\Scripts\activate.bat + ``` + + * If you are using PowerShell, run: + + ```powershell + .\.venv\Scripts\Activate.ps1 + ``` * On macOS or Linux, run: @@ -190,6 +197,8 @@ Configure a Python virtual environment and install the MQTT pip packages. source ./.venv/bin/activate ``` + > 💁 These commands should be run from the same location you ran the command to create the virtual environment. You will never need to navigate into the `.venv` folder, you should always run the activate command and any commands to install packages or run code from the folder you were in when you created the virtual environment. + 1. Once the virtual environment has been activated, the default `python` command will run the version of Python that was used to create the virtual environment. Run the following to get the version: ```sh diff --git a/2-farm/lessons/5-migrate-application-to-the-cloud/README.md b/2-farm/lessons/5-migrate-application-to-the-cloud/README.md index 3d428cec..3811b456 100644 --- a/2-farm/lessons/5-migrate-application-to-the-cloud/README.md +++ b/2-farm/lessons/5-migrate-application-to-the-cloud/README.md @@ -131,11 +131,18 @@ The Azure Functions CLI can be used to create a new Functions app. 1. Activate the virtual environment: - * On Windows run: + * On Windows: + * If you are using the Command Prompt, or the Command Prompt through Windows Terminal, run: - ```cmd - .venv\Scripts\activate.bat - ``` + ```cmd + .venv\Scripts\activate.bat + ``` + + * If you are using PowerShell, run: + + ```powershell + .\.venv\Scripts\Activate.ps1 + ``` * On macOS or Linux, run: @@ -143,6 +150,8 @@ The Azure Functions CLI can be used to create a new Functions app. source ./.venv/bin/activate ``` + > 💁 These commands should be run from the same location you ran the command to create the virtual environment. You will never need to navigate into the `.venv` folder, you should always run the activate command and any commands to install packages or run code from the folder you were in when you created the virtual environment. + 1. Run the following command to create a Functions app in this folder: ```sh