News for hackers. Stuff that matters.
Re:An Intro to Python Flask by atoav on Monday April 04, 2022 @06:06AM (#30904901)
Exactly. Always, always create a virtual environment of some sorts for your python projects, unless you don't use external dependecies at all.

I ended up using poetry in the end.

Re:An Intro to Python Flask by NoThisIsMe on Monday April 04, 2022 @08:05AM (#30905676)
Yes, that too, but GP isn't talking about virtual environments.
Re:An Intro to Python Flask by mescaline on Monday April 04, 2022 @11:32AM (#30907824)
Or just run it in a container!
Re:An Intro to Python Flask by atoav on Monday April 04, 2022 @01:00PM (#30909020)
Poetry wins over a container because you have better version control (minimum/maximum specs as per your pyproject.toml file) and makes sure your users get the same build (as per poetry.lock).

Additionally if what you are building is a library, then a container won't fly as you (to my knowledge) cannot publish these to pypi (to make them installable via pip install foo)