Live data from Hacker News

Python in 2019 Sounds Like an Unprofessional Garage Team Band

medium.com

1–10 of 14 posts

Re: Python in 2019 Sounds Like an Unprofessional Garage Team Band

#4
post #2

Maybe before trying to write (much less criticize) Python code you should learn how access control works on operating systems. Right click "Run as Administrator"

This is fundamentally mistaken advice, not because it’s necessarily it’s wrong to run python modules in the administrator context (although you probably don’t need to) but it is always a bad idea to run command with root/administrator privileges without understanding why you are doing so and why root privs are needed.

If you don’t need global system access to these modules, appending —-user to pip will install in the user context, no elevated privs needed.

Re: Python in 2019 Sounds Like an Unprofessional Garage Team Band

#5
post #4
post #2

Maybe before trying to write (much less criticize) Python code you should learn how access control works on operating systems. Right click "Run as Administrator"

This is fundamentally mistaken advice, not because it’s necessarily it’s wrong to run python modules in the administrator context (although you probably don’t need to) but it is always a bad idea to run command with root/administrator privileges without understanding why you are doing so and why root privs are needed. If you don’t need global system access to these modules, appending —-user to pip will install in the…

Why isn't it the default?

According to the superuser link, in the previous version it worked by default without privileged access.

Re: Python in 2019 Sounds Like an Unprofessional Garage Team Band

#6
WSL could have avoided all of this. Windows has never, ever been a friendly place to install programming languages of any kind.

With WSL I've been able to use Windows for actual development. Want Node? Got it. Python? Done. How Windows has never come up with something as slick as apt baffles me. That shouldn't be hard!

It used to be a good day to wrangle it into submission, with all sorts of ridiculous things like restarting or logging out/logging in depending on the package in question.

Re: Python in 2019 Sounds Like an Unprofessional Garage Team Band

#7
post #2

Maybe before trying to write (much less criticize) Python code you should learn how access control works on operating systems. Right click "Run as Administrator"

I obviously run pip as administrator... before replying you should try it yourself.

Re: Python in 2019 Sounds Like an Unprofessional Garage Team Band

#8

WSL could have avoided all of this. Windows has never, ever been a friendly place to install programming languages of any kind. With WSL I've been able to use Windows for actual development. Want Node? Got it. Python? Done. How Windows has never come up with something as slick as apt baffles me. That shouldn't be hard! It used to be a good day to wrangle it into submission, with all sorts of ridiculous things like re…

Anaconda would have avoided this. It's a breeze to install on Windows.

The Windows answer to apt is chocolatey, BTW.

FYI, Windows 10 is actually pretty easy to deal with. The primary issue I see these days is around certain numerical libraries not building unless user has CPP compiler installed.

Post reply on HN