Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

alias: /usr/local/bin/pip3: not found, but .bashrc is correct

Tags:

python

bash

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?

like image 752
Leonard Avatar asked Oct 18 '25 00:10

Leonard


1 Answers

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.

like image 174
Albin Paul Avatar answered Oct 20 '25 14:10

Albin Paul



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!