Python 3.8.5 Virtual Environment for Windows 7, 10 (Practical Guide) - 2020

Опубликовано: 05 Июль 2026
на канале: Suraj Sharma - Full Stack Developer
976
35

In this video, I have explained how you can isolate your python 3.8.5 projects using python virtual environment tool so that different projects can maintain their own set of packages and libraries on your Windows 7 or 10.
So, Let's get started.
If you haven't subscribed to my channel yet, please do subscribe. I am planning to upload at least three videos in a week.
Anyways! I have opened my command prompts. First I am going to type python -m venv python-projects, venv is a python package to create a virtual environment.
Next, I am going to check the python projects folder to see what all directories got created. The library folder contains site-packages and the scripts folder contains pip executable. they are isolated and not accessible outside the virtual environment.
Next, To use the virtual environment, We need to run the activate.bat file. which I am going to do on the command prompts. Inside python-projects\Scripts, I ran activate.bat to use the virtual environment. folder name inside the bracket tells us that the virtual environment is activated.
Next, I am going to run 'pip install Flask'. to get the flask module, later will check whether they are available outside the virtual environment or not.
Now, on a new cmd, I am outside the virtual environment, I am going to run python interpreter to check for flask import. It says module not found, as expected. Now I am going to check it inside the python interpreter of the virtual environment by importing flask. It runs without an error. Hence, Packages inside the virtual environment are isolated.
That's all from this video. I hope this video is useful to you. IF you faced any issue please do comment, I will reply to your comments.

Thanks for watching!

Find me in
Official Website: https://www.surajsharma.net