Hacker News new | ask | show | jobs
by JulianWasTaken 5035 days ago
Besides upvoting for agreement with all the above (I didn't review the code but certainly all this is worth fixing if present), I'll also say that you probably shouldn't recommend people using `sudo` to install your thing in your README / landing page.
1 comments

What is preferred?
Typically you just leave off the sudo and recommend people to just run pip install mything. That's the only thing required, unless you have a Python that has its `site-packages` directory in a place that isn't user writable, for which people who are in this situation are generally aware of the proper solution (which I'll mention in a sec anyhow).

You should essentially never use sudo to install any package, since even besides any security issues, it can clobber things on your system that are necessary for your OS (by say, upgrading a package that your OS ships with).

I happen to not use my system's shipped Python at all, since I'm on OSX, but if you are using it, you want to use `pip install --user mything`, no sudo necessary.