DEV Community

loading...

Discussion on: How do YOU manage python environments

Collapse
fronkan profile image
Fredrik Bengtsson

Mostly I use virtualenv, but for some use cases I also use Docker

Collapse
waylonwalker profile image
Waylon Walker Author • Edited

Bonus points for using Docker. I have never used docker for development, how do you like it as a python environment? Seems like it would be kinda big for a standard use case without needing to run other components; databases, web servers, etc, but that could be my lack of experience with it.

Collapse
fronkan profile image
Fredrik Bengtsson • Edited

I do prefer using virtualenv because, as you said, docker is a bit heavy. I also think it is harder to debug inside a docker-container. I usually use the VS code debuger which automatically pick up virtual environments. What I do like with docker is that it is guaranteed to work the same in production. E.g. multi-processing in Python behaves differently on Windows and Linux and I am working with both.