Post AdJJ2lnaFPGIFJT2bQ by johnelamb@mastodon.social
 (DIR) More posts by johnelamb@mastodon.social
 (DIR) Post #AdJFpO1f1XEot8yjGi by mttaggart@infosec.town
       2023-12-29T18:11:33.402Z
       
       0 likes, 0 repeats
       
       Installing Python on Windows has to be one of the sneakiest traps for technical debt around. There are no right ways, only choices about how to be wrong.
       
 (DIR) Post #AdJIZvdqZZ4iNLA1Bo by johnelamb@mastodon.social
       2023-12-29T18:34:26Z
       
       0 likes, 0 repeats
       
       @mttaggart python poetry + .envs in project folders not sufficient?
       
 (DIR) Post #AdJIZwStVluMvf2mky by mttaggart@infosec.town
       2023-12-29T18:42:22.755Z
       
       0 likes, 0 repeats
       
       @johnelamb No it is not. Even installing Python itself is fraught no matter how you do it.I like github.com/pyenv-win/pyenv-win
       
 (DIR) Post #AdJJ2lnaFPGIFJT2bQ by johnelamb@mastodon.social
       2023-12-29T18:43:28Z
       
       0 likes, 0 repeats
       
       @mttaggart oh ok. I treated installing system python, to be immediately ignored, as some horrible medicine to swallow and move on. What was I missing?
       
 (DIR) Post #AdJJ2mmuZOJnJWA1C4 by mttaggart@infosec.town
       2023-12-29T18:47:35.314Z
       
       0 likes, 0 repeats
       
       @johnelamb What do you mean by "System Python?"
       
 (DIR) Post #AdJJf3wXEf0lWXui9I by johnelamb@mastodon.social
       2023-12-29T18:51:45Z
       
       1 likes, 0 repeats
       
       @mttaggart fair. Python installed in a typical install location where multiple users have rights to execute it, and everyone pipping will stomp on eachother in hilarious ways. It’s not like .venvs are containers locked down to one thing, but not being in $Path, and using poetry add/remove makes it less crazy. But yeah, windows is not depending on a version of Python installed and managed by windows update, sure.
       
 (DIR) Post #AdJJxo1gddZXf1GEVM by mttaggart@infosec.town
       2023-12-29T18:57:54.173Z
       
       0 likes, 0 repeats
       
       @johnelamb So this is my thing..it can be, but it's a mistake. If you run python in PowerShell before installing it, you are directed to the Windows Store. And in installing that "managed" version of Python is fine until it isn't. For one thing, I've never seen env:PATH update correctly. To say nothing of pip install locations.And python.org? Have you seen that installer? It's a minefield of potential gotchas for a clean environment.
       
 (DIR) Post #AdJKKarbk65dUwPdT6 by johnelamb@mastodon.social
       2023-12-29T19:00:20Z
       
       1 likes, 0 repeats
       
       @mttaggart I compute in the order of 🍎🐧🪟so besides the one attempt at a joke, I am mostly actually asking what I am missing as this makes more sense on the first two than the latter.
       
 (DIR) Post #AdJKKcmibFMpSM8l7o by mttaggart@infosec.town
       2023-12-29T19:02:01.284Z
       
       0 likes, 0 repeats
       
       @johnelamb For real, the pyenv link I shared is the ticket. That plus poetry.