How to override the pip command to Python3.x instead of Python2.7?

后端 未结 7 1181
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 20:07

I am using OSX and I have pip installed for both Python3.5 and Python2.7. I know I can run the command pip2 to use Python2 and when I use the command pip3

7条回答
  •  渐次进展
    2020-12-02 20:30

    Can't you alias pip='pip3' in your ~/.bash_profile?

    In Terminal, run nano ~/.bash_profile, then add a line to the end that reads alias pip='pip3'. This is safe; it won't affect system processes, only your terminal.

提交回复
热议问题