Python Tutorial: VENV (Mac & Linux) – How to Use Virtual Environments with the Built-In venv Module

///Python Tutorial: VENV (Mac & Linux) – How to Use Virtual Environments with the Built-In venv Module

Python Tutorial: VENV (Mac & Linux) – How to Use Virtual Environments with the Built-In venv Module

FavoriteLoadingAdd to favorites

In this Python Programming Tutorial, we will be learning how to use virtual environments on the Mac and Linux operating systems with the built-in venv module. We will learn how to create them, activate them, remove them, and much more. Let’s get started…

VENV (Windows) –

✅ Support My Channel Through Patreon:

✅ Become a Channel Member:

✅ One-Time Contribution Through PayPal:

✅ Cryptocurrency Donations:
Bitcoin Wallet – 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet – 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet – MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey’s Public Amazon Wishlist

✅ Equipment I Use and Books I Recommend:

▶️ You Can Find Me On:
My Website –
My Second Channel –
Facebook –
Twitter –
Instagram –

#Python #venv

source

By |2019-11-18T00:01:13+00:00November 18th, 2019|Python Video Tutorials|37 Comments

37 Comments

  1. rafael alves duarte November 18, 2019 at 12:01 am - Reply

    Simple, direct and well explained.

    Thanks man, this helped me!

  2. ccall48 November 18, 2019 at 12:01 am - Reply

    Hey mate,

    A little bit unrelated, but how do I set up my Mac terminal to be as clean as yours? So I get the colours and the prompt under the working directory? Hopefully I work it out, as I've only had a MacBook for a few days 😉

  3. Stephen Devane November 18, 2019 at 12:01 am - Reply

    How to use venv with eclipse?

  4. nathan gregg November 18, 2019 at 12:01 am - Reply

    Man alive! This is useful

  5. Keanu Nurherbyanto November 18, 2019 at 12:01 am - Reply

    Thanks, very helpful stuff…

  6. pavelow36 November 18, 2019 at 12:01 am - Reply

    been to numerous pages, wikis, stackoverflows and only got confused snippets of virtual environments. Watched your video and my brain got opened and clarity shone inside… magnifico!

  7. Juan Z November 18, 2019 at 12:01 am - Reply

    Hey Corey, I have 2 versions of python executable /bin/python and /bin/python3 I checked and they’re both the same version just not sure if this makes a difference? My Django site packages is in version 3.6

  8. Tirso Meneses Rojas November 18, 2019 at 12:01 am - Reply

    Hello, I can't execute "pip3 list" command if there isn't and active virtual environment, system ask for an active virtual environment. There is somebody that can help me to solve this issue. I use Ubuntu 18.04.3. Thanks in advance.

  9. J November 18, 2019 at 12:01 am - Reply

    as a beginner, I am confused with so many tools: venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv. what the hell. which one should i use to be comfortable in industry?

  10. Kassandra Rodriguez November 18, 2019 at 12:01 am - Reply

    thank you

  11. Jabon Eros November 18, 2019 at 12:01 am - Reply

    Great video! How would I create a Python 3.6.8 virtual environment using venv when I do a python3 -V it shows Python 3.7.4?

  12. Rudi Klein November 18, 2019 at 12:01 am - Reply

    You're a great teacher. All of your video's are clear and interesting. Especially for an advanced noob like me.

  13. Noah November 18, 2019 at 12:01 am - Reply

    Brilliant! Thanks!!

  14. Rocco November 18, 2019 at 12:01 am - Reply

    You've gotta show this guy the love as he always explains things in such simple terms and then gives you a little extra that you weren't expecting! Thank you sir for all the time you invest to give us great content!

  15. Prabhath Kota November 18, 2019 at 12:01 am - Reply

    —system-site-packages was a good tip 👍

  16. T November 18, 2019 at 12:01 am - Reply

    Same here LOL @sandy

  17. Daegu Dude November 18, 2019 at 12:01 am - Reply

    Always appreciate your video Corey, Thanks 🙂

  18. Cristian Heredia November 18, 2019 at 12:01 am - Reply

    With venv where do you put environment variables?

  19. MouradMourad1000 November 18, 2019 at 12:01 am - Reply

    Thanks a lot for this video, it comes when I realized that I am using python3.6 with virtualenv, which is obsolete.
    But I have an issue: when running : python3 -m venv python-3.6.2_venv I don't have pip installed in my venv (even it is present in system install). Do you have any idea why it is not working ? Thanks a lot

  20. Nate November 18, 2019 at 12:01 am - Reply

    Thanks! I finally got my head around venv…

  21. MrPicou51 November 18, 2019 at 12:01 am - Reply

    Great video! Please, talk about Asyncio.

  22. zolongOne November 18, 2019 at 12:01 am - Reply

    Thanks for this awesome tutorial. cheers!

  23. Matias Coca November 18, 2019 at 12:01 am - Reply

    Great videos Corey. Clear and perfect explanation.

  24. Sasa Kanjuh November 18, 2019 at 12:01 am - Reply

    Hey, thanks for the video, it's great, as usual 🙂
    Is there a way to show virtual environment info in shell prompt using this method?

  25. Landon Evans November 18, 2019 at 12:01 am - Reply

    Hi Corey. Thank you for the video. If you're working with multiple projects (thus multiple virtual environments), how are you working with Sublime Text? I'd like to stay within ST3, but I've been more and more in VSCode because I can quickly change my interpreter into my virtual environment. With Jupyter Lab, I build a new Ipykernel in my virtual environment and it works well. Love to know how to leverage virtual environments and sublime text without having to create a new build system every time.

  26. DIVINE FRANCIS November 18, 2019 at 12:01 am - Reply

    Thank you Mr CoreyMS

  27. Still waiting for Fry November 18, 2019 at 12:01 am - Reply

    Thank you! Now I get it

  28. s 1291 November 18, 2019 at 12:01 am - Reply

    Thank you very much. what about some videos about 'code refactring', design patters ?

  29. Martim Lobao November 18, 2019 at 12:01 am - Reply

    Why/when would you use venv over pyenv? For me, a big advantage to using pyenv is the ability to have your virtual environment activated automatically whenever you cd into a project folder.

  30. Fernando Goya November 18, 2019 at 12:01 am - Reply

    Your videos are Awesome! Thanks for sharing your knowledge.

  31. Rohan M November 18, 2019 at 12:01 am - Reply

    Nice video, as always. Which is better to use Anaconda/miniconda or pipenv or venv for virtual environment? I use Anaconda for both virtual environment and as a package manager (and use pip too). Thanks.

  32. Lee Davies November 18, 2019 at 12:01 am - Reply

    concise, clear and perfectly delivered. I will be using this a lot from now on.

  33. japo neon November 18, 2019 at 12:01 am - Reply

    I love your videos man. From Argentina ty 👏

  34. amol shirke November 18, 2019 at 12:01 am - Reply

    Understood when it's development environment. But curious to know what will be deployment strategy in PRODUCTION environment?

  35. Sandy November 18, 2019 at 12:01 am - Reply

    I click the like button first and then watch the videos , 'cause i know its gonna be awesome

  36. Ghasak Ibrahim November 18, 2019 at 12:01 am - Reply

    Man! Your channel is awesome
    Keep up with the awesome work

  37. Marcus Abukari November 18, 2019 at 12:01 am - Reply

    Why not use Pipenv?

Leave A Comment

*