Reputation: 3218
I am trying to create alias from pip
to pip3
.
I followed this tutorial exactly.
The section
Don't forget to update pip to pip3! is what I followed.
I installed python3 through brew, and which pip3
gives me /usr/local/bin/pip3
I checked ~/.bashrc
and it has the line below correctly.
alias pip= /usr/local/bin/pip3
But when I do source ~/.bashrc
to apply the new code, it gives me
-bash: alias: /usr/local/bin/pip3: not found
What am I doing wrong?
Upvotes: 4
Views: 1426
Reputation: 3419
The spacing is very important in bash. Change
alias pip= /usr/local/bin/pip3
to
alias pip=/usr/local/bin/pip3
It will work fine.
Upvotes: 7