What is Virtual Environment?
A virtual environment is a tool that helps to keep dependencies required by different projects in separate places by creating an isolated Python virtual environments. Python virtual environment is mostly used by Python developers. The virtual environment can be created in Windows, Linux and Mac OS.
Source: https://blog.debugeverything.com/virtual-environments-with-python-virtualenv/
Create Virtual Environment in MacOS/Linux
- Install Python3 from https://www.python.org/download/releases/3.0/
- Navigate to the desired location in Windows where you want to create the environment using the Terminal and type the following command:
- Now navigate to the environment that you have created using cd command:
- Activate the environment using:
python3 -m venv "name of the environment"
source bin\activate
Create Virtual Environment in Windows
- Install Python3 from https://www.python.org/download/releases/3.0/
- Navigate to the desired location in Windows where you want to create the environment using the Command Prompt (CMD) and type the following command:
python3 -m venv "name of the environment"
- Now navigate to the environment that you have created using cd command:
- Activate the environment using:
\Scripts\activate.bat

Very good
ReplyDelete