no pip3 in 或者 bash: pip3: 未找到命令...

1、whereis python3

[wcy@localhost ~]$ whereis python3
python3: /usr/bin/python3 /usr/local/python3
[wcy@localhost ~]$ cd /usr/local/python3
[wcy@localhost python3]$ ls
bin  include  lib  share
[wcy@localhost python3]$ cd bin
[wcy@localhost bin]$ ls
2to3              f2py     idle3    pip3.6    python3.6          python3-config
2to3-3.6          f2py3    idle3.6  pydoc3    python3.6-config   pyvenv
easy_install      f2py3.6  pip      pydoc3.6  python3.6m         pyvenv-3.6
easy_install-3.6  flask    pip3     python3   python3.6m-config  wheel

2、建立软连接

[wcy@localhost ~]$ locate pip3
/usr/local/python3/bin/pip3.6
[wcy@localhost ~]$ sudo ln -s /usr/local/python3/bin/pip3.6 /usr/local/bin/pip3

你可能感兴趣的:(centos)