Sebastian Witowski - Python Versions and Dependencies Made Easy

Опубликовано: 16 Октябрь 2024
на канале: EuroPython Conference
1,066
38

Python Versions and Dependencies Made Easy
[EuroPython 2021 - Talk - 2021-07-28 - Optiver]
[Online]

By Sebastian Witowski

Managing Python versions and dependencies can be painful. JavaScript developers have their "nodemodules" folders, but we don't have "pythonmodules" (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)



License: This video is licensed under the CC BY-NC-SA 4.0 license: https://creativecommons.org/licenses/...
Please see our speaker release agreement for details: https://ep2021.europython.eu/events/s...