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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With