I WANT TO UNDERSTAND HOW DOES ENVIRONMENT VARIABLES IN PYTHON VIDEO FOLLOW IN WINDOW AND WHICH IDLE ARE WE USING FOR IT.
PYTHON NSTALLATION - 2 VIDEO
VIRTUAL ENVIRONEMTN VARIABLES
Hello @archita_as02,
Python virtual environments work same in windows as described in video, it provides the support for creating lightweight “virtual environments” with their own site directories, optionally isolated from system site directories.
Here are the commands for running on command prompt which are compatible :for windows for creating python virtual environment:
pip freeze : It will list all the python packages installed
Creating virtual environment:
md my_awesome_project: creating the project folder/directory
cd my_awesome_project: navigating to the project folder.
pip install virtualenv: inatalling package for virtual environment
virtualenv env: creating virtual environment named env
dir: to list all the files in folder for Linux: ls
dir env: list all the files in enviroment
Inside binary folder there will be python executable file which will be used in this project to run.
To activate in environment on windows:
use env\Scripts\activate
Now your environment is activated now you are good go further by installing all the packages required in the project in this virtual environment.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.