Modern Python Projects Transcripts
Chapter: Course conclusion and review
Lecture: Virtual environments

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Since pip installs all python packages in the same folder,
0:04 we can't have two versions of the same package installed at the same time.
0:08 For example, when you have Django 2 installed and you want to install Django 3
0:12 pip will first uninstall that Django 2.
0:15 That's not nice, because if you work on multiple projects,
0:18 you probably need to use different versions of different packages.
0:22 That's why we're using virtual environments.
0:25 When you activate a virtual environment,
0:27 you tell pip to use a different folder to install python packages,
0:31 and you tell Python interpreter to use modules and packages from that folder.