PyCon Nigeria Annual Conference

Enhancing Python Workflows with Python Virtual Environments

speaker-foto

Toyibat Adele

Toyibat is a third-year mechatronics engineering student during the day and a machine learning enthusiast at night. When she's not pursuing her passion for technology, you can find her nestled in a book and living vicariously through characters. You might also find her contributing to the community as a technical writer and Microsoft Learn student ambassador.

Description

Different Python projects require different libraries and dependencies. Managing this usually leads to conflicts and versioning challenges. This session covers the role of virtual environments in Python and how to manage your Python projects using them. We’ll see how to create virtual environments using tools like Venv and Conda and also explore how to isolate project dependencies.

Abstract

Bugs are annoying. What’s even more annoying? Bugs that can be avoided easily. Different Python projects require different libraries and dependencies. As such, conflicts and versioning issues can arise when working on different projects. A way to easily avoid this is by working with virtual environments in Python to manage projects. We’ll learn how to effectively utilise Python virtual environments using popular tools like Venv and Conda. We'll compare different virtual environments like Venv, Conda, Poetry, and Pipenv and explore when best to use them. We’ll learn how to isolate project dependencies and maintain project structure. We’ll also see how the pip function works for installing dependencies and libraries to run our project. By the end of this session, you’ll have the necessary knowledge needed to properly leverage Python virtual environments for seamless management of your project and collaboration. Whether you’re new to Python programming or interested in streamlining your Python workflows, this session is for you!

Audience level: Novice