News for hackers. Stuff that matters.
Re:Python environment setup seems complicated and unsolvable by ShadowBanThis01 on Friday November 10, 2023 @07:36PM (#38226393)
I just gave up on learning Python because of this mess. It's really too bad, because I'd like to write utilities with Python that would run on almost any machine.

Oh well.

When I was still trying to wrangle this, I had followed this guide on setting up Python "the right way." I wonder what y'all think: https://opensource.com/article/19/5/python-3-default-mac

Re:Python environment setup seems complicated and unsolvable by 4kelly on Friday November 10, 2023 @09:51PM (#38227212)
Looks mostly good, but also has extra elements you don’t really need.

Pyenv - managing / installing multiple python versions.

Then all you need to start is regular virtual environments ‘python -m venv .venv’ with ‘requirements.txt’, but I also recommend poetry. This is for dependency isolation between projects.

Packaging up projects for distribution is a whole other venture though!

Re:Python environment setup seems complicated and unsolvable by ShadowBanThis01 on Saturday November 11, 2023 @12:07PM (#38232128)
Thanks!