Installing Python Packages with pip and virtualenv / venv

Описание к видео Installing Python Packages with pip and virtualenv / venv

https://dbader.org/python-dependency-... ► Take a free 5-day Python class on Dependency Management & Packaging

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.

To get more Python Tricks and to discover the full potential of Python check out "Python Tricks: The Book" at the link below:

► Write Clean & Beautiful Python: https://dbader.org/pytricks-book

SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube

* * *

► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com

FREE Python Tutorials & News:
» Python Tutorials: https://dbader.org
» Python News on Twitter:   / @dbader_org  
» Weekly Tips for Pythonistas: https://dbader.org/newsletter
» Subscribe to this channel: https://dbader.org/youtube

Комментарии

Информация по комментариям в разработке