0% found this document useful (0 votes)
10 views

Steps_to_Set_Up_a_Python_Virtual_Environment[1]

This document outlines the steps to set up a Python virtual environment, starting from opening the terminal to creating and activating the environment. It includes commands for creating the environment, activating it on different operating systems, installing packages, and deactivating the environment. Additionally, it mentions that requirements will be provided separately.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Steps_to_Set_Up_a_Python_Virtual_Environment[1]

This document outlines the steps to set up a Python virtual environment, starting from opening the terminal to creating and activating the environment. It includes commands for creating the environment, activating it on different operating systems, installing packages, and deactivating the environment. Additionally, it mentions that requirements will be provided separately.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Steps to Set Up a Python Virtual Environment

Step 1: Open your terminal or command prompt.

Step 2: Create a virtual environment by running the following command:


python -m venv probe
Here, probe is the name of your virtual environment. You can name it anything
you prefer.
Step 3: Wait for the virtual environment to be created. Once it is done, you will
see a new folder named probe (or whatever name you chose for env).

Step 4: Activate the virtual environment.


 On Windows:
 On Mac OS / Linux:
source probe/bin/activate
Step 6: You should now see (probe) before the command prompt, indicating
that the virtual environment is active.
Example:

Step 7: You can now install packages in this isolated environment. For example,
to install requests, run:
pip install requests
Step 8: To deactivate the virtual environment after the usage is done, simply
run:
deactivate
Steps to download necessary requirements : ( requirements will be sent )

You might also like