Python Tutorial | Virtual Environment in Python Part - 1

Опубликовано: 09 Сентябрь 2020
на канале: Developers Planet
147
5

#python #virtualenvironment #virtualenv
In this video we will learn all about virtual environment

A Virtual Environment, put simply, is an isolated working copy of Python which allows you to work on a specific project without worry of affecting other projects.
For example, you can work on a project which requires Django 1.3 while also maintaining a project which requires Django 1.0.

These should be installed in system-
python
pip

Checking version-
command- virtualenv --version
Install it via pip-
command- pip install virtualenv
Create a virtual environment-
command- virtualenv venv
(It will create a virtual env folder)
Activating virtual environment-
Go to path- venv\Scripts and
run cmd- activate
Deactivating virtual environment-
Run cmd- deactivate

Use- It helps in installing dependencies and libraries in a separated space without affecting different projects and local system, meanwhile it also take care of version of different libraries of different projects separately


На этой странице сайта вы можете посмотреть видео онлайн Python Tutorial | Virtual Environment in Python Part - 1 длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Developers Planet 09 Сентябрь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 147 раз и оно понравилось 5 зрителям. Приятного просмотра!