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
https://www.rogerperkin.co.uk/network-automation/python/virtualenv-tutorial/
✅ Subscribe to my Channel and get more great tips
https://www.youtube.com/rogerperkin/?sub_confirmation=1
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
05:55 Export package versions to requirements.txt
06:20 Exit venv
07:36 Delete virtual environment folder
#Python #NetworkAutomation #PythonTutorial
Check out more Python Tutorials here - https://www.rogerperkin.co.uk/network-automation/python/
Roger Perkin
Network & Security Consultant
CCIE #50038
https://www.rogerperkin.co.uk
Join me on Linkedin https://www.linkedin.com/in/rogerperkin
Follow me on Twitter https://twitter.com/rogernperkin
Founder of Network Engineer 2.0
https://learn-networking.teachable.com/