Command pip
doesn't work without sudo
I was happily using pip
with sudo
but I have read here that I shouldn't do that.
However, when I try to use pip
without sudo
I get this:
[souto@~]$ pip install <package-name>
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main
I have tried James Sullivan's tip so my .bash_history
file has the content below but to no avail.
[souto@~]$ cat .bash_aliases
alias pip=/usr/bin/pip
I am working on WSL, in case this is relevant.