How to change pip3 command to be pip?

前端 未结 9 2489
梦毁少年i
梦毁少年i 2020-12-04 23:33

I uninstalled pip, and I installed pip3 instead. Now, I want to use pip3 by typing pip only. The reason is I am used to t

9条回答
  •  死守一世寂寞
    2020-12-05 00:04

    This can be done by simply creating an alias for the command. To create an alias just type

    $alias new_command="existing_command"
    In your case,
    $alias pip="pip3"

    Although this isn't permanent. OT make it permanent edit your bashrc file
    $ vim ~/.bashrc
    an to the end of it append the line. $alias pip="pip3"

提交回复
热议问题