Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Python Virtual Environments Recap

This lesson is a recap of the entire course, it covers the benefits of using virtual environments and best practices to follow when using them in your projects.

Comments & Discussion

Robert T on March 16, 2019

Good stuff, Dan. I now understand how it works in a Linux OS, it seems so clean compared to Windows with Pycharm. Everything you did was outside of the code editor. I’d really like to see how to accomplish the same thing under Windows and Pycharm.

Douglas Fabretti on April 10, 2019

Nicely explained, short and concise! Thank you very much for sharing this series with us Dan.

Andres Salgado on April 19, 2019

Thank you Dan!! Great course.

Do you care to elaborate on the difference between virtualenv and venv? I understand that based on a stackoverflow entry ( virtualenv does not contain all standard libraries. Is that correct?

Dan Bader RP Team on April 19, 2019

@Andres: Thanks! Basically virtualenv and venv do the same thing. You’ll get a fully self-contained Python environment including the full standard library.

The main difference is that venv is included with Python 3 out of the box and not available on Python 2.

So personally I use venv for all Python 3 projects, and I use virtualenv as a fallback for Python 2 projects where venv isn’t available.

Hope that helps you out :)

Anonymous on April 24, 2019

I am working with a Python 2 application and the inconsistency that venv is only available on Python 3 tripped me up. It wasn’t clear to me that venv wasn’t available for Python 2 or why I wasn’t able to install it. I wish that I had seen your most recent comment earlier. Otherwise, the course was direct and clear.

charliem22 on May 28, 2019

Great job! I’m just staring my first ‘big’ project and needed to understand venv machinary. This tutorial was exactly what I needed. Thanks Dan!!! –charlie

Dan Bader RP Team on May 29, 2019

@charliem22: Awesome, glad to hear it!! :)

Koert on June 23, 2019

How difficult can it be to work with virtual environments? Never got it but thanks to your videos I finally understood it! Thanks again.

Abby Jones on June 27, 2019

This is awesome.

Become a Member to join the conversation.