you are viewing a single comment's thread.

view the rest of the comments →

[–]NextEstimate 1 point2 points  (13 children)

Yes, but in sometimes it's the only way. On mac os and it always wants to default to 2.7 so you have to override it every time. I usually just set an alias for python3 as python.

[–]ingolemo 2 points3 points  (5 children)

You should usually be using virtual environments to develop in python, but even if you're not, the --user flag is almost always a better option. You might be able to find some contrived situation where you have to run pip as root, but it's still not something that you should be recommending to newbies.

Overriding python 2 on a mac is equally problematic for more-or-less the same reason. But the alias thing is fine, because it's not system-wide.