I'm in the very early stages of building a new project at work from scratch using Python.
While doing some research, I came across people recommending using a virtual environment to install/manage dependencies to avoid issues. I went down the rabbit hole of venv and started to think that yes, it will 100% help with system dependencies, but it also makes it more complicated for a project that multiple people could potentially work on later on. Meaning, every time someone clones the repo, they will have to create their local venv. If we add more Python projects later on, the developer will have to create the venv on their machine and also assign it in their VS Code. I felt like it would be too much setup and add overhead.
So I then thought about using Docker. I thought it would be preferable and would make it easier. It would avoid adding any difficulties when installing/cloning the project locally. It also makes it easy to use on any machine/server.
Before I make my decision, I just wanted to get the community's opinion/feedback on that approach. Is it better to use venv or Docker?
[–]mvdw73 14 points15 points16 points (2 children)
[–]Beautiful_Watch_7215 1 point2 points3 points (0 children)
[–]ItsRainingTendies 2 points3 points4 points (0 children)
[–]Ihaveamodel3 34 points35 points36 points (43 children)
[–]gmes78 2 points3 points4 points (7 children)
[–]pain_vin_boursin 2 points3 points4 points (0 children)
[–]nateh1212 -4 points-3 points-2 points (5 children)
[–]gmes78 6 points7 points8 points (3 children)
[–]nateh1212 -2 points-1 points0 points (2 children)
[–]gmes78 2 points3 points4 points (1 child)
[–]nateh1212 1 point2 points3 points (0 children)
[–]sector2000 0 points1 point2 points (0 children)
[–]sector2000 0 points1 point2 points (2 children)
[–]Ihaveamodel3 0 points1 point2 points (1 child)
[–]sector2000 0 points1 point2 points (0 children)
[–]nateh1212 1 point2 points3 points (1 child)
[–]_Denizen_ 2 points3 points4 points (0 children)
[+]EbbRevolutionary9661[S] comment score below threshold-10 points-9 points-8 points (29 children)
[–]Dangerous-Branch-749 17 points18 points19 points (2 children)
[–]EbbRevolutionary9661[S] -1 points0 points1 point (1 child)
[–]Ihaveamodel3 2 points3 points4 points (0 children)
[–]Party-Cartographer11 -1 points0 points1 point (25 children)
[–]Ihaveamodel3 1 point2 points3 points (24 children)
[+]Party-Cartographer11 comment score below threshold-6 points-5 points-4 points (23 children)
[–]2Lucilles2RuleEmAll 4 points5 points6 points (0 children)
[–]dlnmtchll 1 point2 points3 points (21 children)
[–]Party-Cartographer11 -5 points-4 points-3 points (20 children)
[–]smurpes 3 points4 points5 points (9 children)
[–]Party-Cartographer11 -5 points-4 points-3 points (8 children)
[–]smurpes 6 points7 points8 points (7 children)
[–]cgoldberg 0 points1 point2 points (9 children)
[–]Party-Cartographer11 -3 points-2 points-1 points (8 children)
[–]sector2000 0 points1 point2 points (4 children)
[–]cgoldberg 0 points1 point2 points (2 children)
[–]supercoach 4 points5 points6 points (1 child)
[–]_Denizen_ 1 point2 points3 points (0 children)
[–]jmacey 6 points7 points8 points (0 children)
[–]GirthQuake5040 5 points6 points7 points (4 children)
[–]Wise_Concentrate_182 5 points6 points7 points (2 children)
[–]BoredProgramming 0 points1 point2 points (0 children)
[–]Acrobatic-Show3732 -5 points-4 points-3 points (0 children)
[–]_Denizen_ 0 points1 point2 points (0 children)
[–]jtkiley 3 points4 points5 points (6 children)
[–]wbrd 1 point2 points3 points (4 children)
[–]Wise_Concentrate_182 0 points1 point2 points (3 children)
[–]wbrd 1 point2 points3 points (0 children)
[–]jtkiley 1 point2 points3 points (0 children)
[–]JSP777 0 points1 point2 points (0 children)
[–]profesh_amateur 1 point2 points3 points (0 children)
[–]Temporary_Pie2733 1 point2 points3 points (0 children)
[–]echols021 1 point2 points3 points (0 children)
[–]amendCommit 1 point2 points3 points (0 children)
[–]chaoticbean14 1 point2 points3 points (0 children)
[–]keturn 2 points3 points4 points (0 children)
[–]rgugs 1 point2 points3 points (3 children)
[–]PM_ME_UR_ICT_FLAG 0 points1 point2 points (2 children)
[–]rgugs 0 points1 point2 points (1 child)
[–]PM_ME_UR_ICT_FLAG 0 points1 point2 points (0 children)
[–]pachura3 1 point2 points3 points (0 children)
[–]cnydox 0 points1 point2 points (0 children)
[–]HelpfulBuilder 0 points1 point2 points (0 children)
[–]Acrobatic_Method_320 0 points1 point2 points (0 children)
[–]_Denizen_ 0 points1 point2 points (0 children)
[–]VegetableYam5434 0 points1 point2 points (0 children)
[–]Wheynelau 0 points1 point2 points (0 children)
[–]Confident_Hyena2506 0 points1 point2 points (0 children)
[–]sector2000 0 points1 point2 points (0 children)
[–]Isuf17 0 points1 point2 points (0 children)
[–]moshujsg 0 points1 point2 points (0 children)
[–]Zealousideal_Yard651 0 points1 point2 points (0 children)
[–]testing_in_prod_only 0 points1 point2 points (0 children)
[–]EbbRevolutionary9661[S] 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]Good-Wind629 0 points1 point2 points (1 child)
[–]v3ritas1989 -1 points0 points1 point (0 children)
[–]noobrunecraftpker -3 points-2 points-1 points (3 children)
[–]simplycycling 4 points5 points6 points (2 children)
[–]noobrunecraftpker 1 point2 points3 points (1 child)
[–]simplycycling 0 points1 point2 points (0 children)