Python VENV Explained - Python Virtual Environment Tutorial

preview_player
Показать описание
In this Python VENV tutorial I am going to cover how to setup a Python virtual environment using virtualenv and explain why you should be using virtual environments.
This is very useful when you are working on different projects and require different versions of packages or modules which by default are stored in the same location
Learn how to create virtual environment in Python

✅ Subscribe to my Channel and get more great tips

00:00 Start
01:15 Install Virtualenv
01:55 Create Folder for virtual environments
02:10 Create your first virtual environment
03:28 Activate your virtual environment
05:00 Install package into virtual environment
06:20 Exit venv
07:36 Delete virtual environment folder

#Python #NetworkAutomation #PythonTutorial

Roger Perkin
Network & Security Consultant
CCIE #50038

Founder of Network Engineer 2.0
Рекомендации по теме
Комментарии
Автор

Thanks Roger....very nice..short and to the point....

worthtech
Автор

great video, saved me, thank you very much !!

barisbasar
Автор

It'd be nice if you'd elaborate on the requirements.txt and how one would use it to get the environment onto another machine. ...like a linux server, for example.
Great video, BTW :)

alexthewebdesigner
Автор

Thank you!!
You have sayied deactivate and then you win my subscription.

vitorvazschultz
Автор

I'm a Network student and was following your "How to run a Cisco Nexus 9000v Switch on a Windows 10 laptop with Vagrant and Virtualbox" but got errors.
You'd mentioned "Can Ansible run on Windows? The short answer is no. Ansible will only run on a linux based system, however if you want to run Ansible on Windows you can look to install the Windows subsystem for Linux or run a Virtual machine on your Windows device." I was looking through some of your courses but couldn't find this part of how to.
HOW do I set up the same using WSL2 with Linux using Docker in Windows 10? I have Miniconda & Python packages installed for other courses on laptop & have setup virtual envs in Miniconda.
I'm learning to use Linux when I can but only have a Win10 laptop, and with Docker to avoid VirtualBox/VMWare resource hungry.
Thanks. Subscriber

txreal
Автор

You can use pyenv to set different python environment for different project and you can refer to this for installation Thanks!

reshukumari