Modern Python Projects Transcripts
Chapter: Course conclusion and review
Lecture: Virtual environments
0:00 Since pip installs all Python packages in the same folder, we can't have two versions of the same package installed at the same time.
0:09 For example, when you have Django 2 installed and you want to install Django 3 pip will first uninstall that Django 2.
0:16 That's not nice, because if you work on multiple projects, you probably need to use different versions of different packages.
0:23 That's why we're using virtual environments. When you activate a virtual environment,
0:28 you tell pip to use a different folder to install Python packages, and you tell Python interpreter to use modules and packages from that folder.