Companies Home Search Profile

Working With Python Virtual Environments

Focused View

Dan Bader

08:31

192 View
  • 10 Virtual Environments - Part1.mp4
    02:11
  • 10 Virtual Environments - Part2.mp4
    02:30
  • 10 Virtual Environments - Part3.mp4
    01:22
  • 10 Virtual Environments - Part4.mp4
    01:10
  • 10 Virtual Environments - Part5.mp4
    00:41
  • 10 Virtual Environments - Part6.mp4
    00:37
  • Description


    When you install Python packages globally there can be only one version of a Python library across all of your programs. This means you’ll quickly run into version conflicts.

    The solution to these problems is separating your Python environments with so-called virtual environments. They allow you to separate Python dependencies by project, including selecting between different versions of the Python interpreter.

    A Virtual Environment (or “virtualenv”, “venv” for short) is an isolated Python environment. Physically, it lives inside a folder containing all the packages and other dependencies, like native-code libraries and the interpreter runtime, that a Python project needs.

    To demonstrate how virtual environments work as a “sandbox” I’ll give you a quick walkthrough where we’ll set up a new environment (or virtualenv, as they’re called for short) and then install a third-party package into it using the Python pip command.

    More details


    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Category

    Dan Bader is the owner and editor in chief of Real Python and the main developer of the realpython.com learning platform. Dan has been writing code for more than 20 years and holds a master’s degree in computer science. He’s the author of Python Tricks, a best selling programming book for intermediate Python developers.

    Hey, I’m Dan Bader and I help Python developers take their coding skills and productivity to the next level. I’m an independent software engineer, author, and speaker. I’ve been writing code for more than two decades—and I’d love to help you become a more proficient Python coder.

    Here’s where you can find me elsewhere on the web:

    I’ve also done some podcast interviews and other media appearances you can check out:

    Learn Python online: Python tutorials for developers of all skill levels, Python books and courses, Python news, code examples, articles, and more.
    • language english
    • Training sessions 6
    • duration 08:31
    • Release Date 2023/04/03