From the course: Managing Python Projects
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
virtualenvs - Python Tutorial
From the course: Managing Python Projects
virtualenvs
A python interpreter can work with only one version of a package at a time. If you work on two projects, one using pandas 0.22, and the other using pandas 0.25, this can be an issue. A lot of unit distributions, and also OSX, uses Python scripts to manage the system, which means that if you install a non-compatible version of a package, you broke the system. To solve these problems, we use virtual environments. A virtual environment is an isolated Python installation. You create a virtual environment for a project that you work on. To create a virtual environment, you can use the built-in venv model, or the popular third party virtualenv. I'm going to use the latter. Note that if you use other package managers, the following commands might differ. Read the documentation. So, virtualenv venv will create a directory called venv with an isolated installation of Python. Now, once I have the virtual…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.