It can be tricky when different packages in Python don't play nice. The solution to this problem is to create an isolated, virtual environment. In this video, I’ll show you how to set up a virtual environment with poetry, a package manager for Python that simplifies dependency management and project packaging.
NextLevel Python Skillshare Class: https://skl.sh/3ZQkUEN
✍ Take a quiz on this topic: https://www.learntail.com/quiz/kkmnju
Get my FREE 7step guide to help you consistently design great software: https://arjancodes.com/designguide.
ArjanCodes Blog: https://www.arjancodes.com/blog
Courses:
The Software Designer Mindset: https://www.arjancodes.com/mindset
The Software Designer Mindset Team Packages: https://www.arjancodes.com/sas
The Software Architect Mindset: Preregister now! https://www.arjancodes.com/architect
Next Level Python: Become a Python Expert: https://www.arjancodes.com/nextlevel...
The 30Day Design Challenge: https://www.arjancodes.com/30ddc
GEAR & RECOMMENDED BOOKS: https://kit.co/arjancodes.
If you enjoyed this content, give this video a like. If you want to watch more of my upcoming videos, consider subscribing to my channel!
Discord: https://discord.arjan.codes
Twitter: / arjancodes
LinkedIn: / arjancodes
Facebook: / arjancodes
Instagram: / arjancodes
♪ Tiktok: / arjancodes
Code reviewers:
Yoriz
Ryan Laursen
James Dooley
Dale Hagglund
Video edited by Mark Bacskai: / bacskaimark
Code example by Henrique Branco: / henriqueajnb
Chapters:
0:00 Intro
1:24 Code example
2:00 Virtual environments
3:00 Tools
4:15 Why poetry?
5:20 Creating a virtual environment with poetry
8:33 Activating it
8:55 Installing dependencies
9:38 Deactivating it
10:11 Removing it
10:27 Packaging and publishing using poetry
11:58 Things to watch out for
14:18 Outro
#arjancodes #softwaredesign #python
DISCLAIMER The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!