Python Versions and Dependencies Made Easy
Session Type | Live |
---|---|
Start time | 17:30 |
End time | 18:00 |
Countdown link | Open timer |
Presentation on using pyenv, virtual environments, and pipx to build an easy-to-manage Python development setup. Setup, where you can easily switch between different Python versions, and you don't have to worry about messing up packages in your projects.
Managing Python versions and dependencies can be painful. JavaScript developers have their "node_modules" folders, but we don't have "python_modules" (yet!) in Python. Instead, we have those mysterious virtual environments. And if you also want to switch between different Python versions, it can quickly turn into a mess.
It doesn't have to be that way. With a few simple tools and practices, you can easily tame Python and its dependencies. In this talk, I'm going to show you how to do this.
I will talk about:
- How to manage Python versions with pyenv and set different versions for a folder or a shell session?
- What are virtual environments, what's the difference between different tools (venv, virtualenvwrapper, conda, etc.), and how to use them?
- How to separate global packages with pipx (and why you should do this)
Sebastian is a Python consultant and trainer based in Poland. He started his journey with programming as a software developer at CERN, where he fell in love with Python (and teaching). Now he is helping companies untangle their complicated architecture and build all sorts of interesting Python projects.
In his spare time, he talks about Python, best practices in programming, and productivity.