2 ms·
"Thou shalt not mess with the system Python"
by rbanffy 5y ago
"Thou shalt not mess with the system Python"
- dagw 5y agoWhile I agree with this statement, it's also kind of the distro's fault for making it so easy to mess with system Python. If I was ever to design a distro and needed a "system Python" I would make sure that it would be completely isolated from and invisible to users. It would only be upgraded as part of an overall major OS version upgrade.
- salawat 5y agoGiven, and yes I've heard that before, but I counter with: If you don't want someone to mess with it, name it as something other people will not regularly have a reason to muck with. One concerted effort to ship distro's with a "sys-python" symlink instead of /usr/bin/python, and for all things currently using the newly minted sys-python stuff can be free of wayward travelers and system sculptors like me mucking with things. No, pyenv is not the answer. Naming things is. And trust me. I get it. It's a rite of passage learned in due time, yada-yada. Got it. If we ever want to get this stuff easier to use though, we have to be willing to help draw clean distinctions between this and that. Virtual environments don't do that until it is far too late and a beginner is already in and over their head in breakage.
- rbanffy 5y ago> No, pyenv is not the answer. Naming things is. In my experience, Pyenv is almost never the answer.