Installing Packages Into a Virtual Environment
00:07 So I am in the same project folder as before, and I am inside an activated virtual environment. So what I am going to do now is I am going to use the pip command to install the popular Requests library.
00:42 So, this is nice, this is exactly what we wanted, we’re not cluttering up the global install here, and just to make sure this actually works, I am going to jump into a Python interpreter session I am going to go ahead and I am going to import the Requests module and I am going to fire off a simple HTTP request.
01:02 Alright, so this worked just fine, so you just saw how to install a new module inside of the virtual environment. It’s really similar to the way you would install a package inside the global environment, but the big difference this time is that everything is kept nice and separate and we’re not cluttering up your global Python environment with this here.
Become a Member to join the conversation.