명령을 /usr/local/bin/pip
실행하여 pip를 강제로 시작합니다 .sudo python3 -m pip install -U pip
이제 pip를 사용하고 싶습니다./usr/bin/pip
이를 달성하기 위해 포인트 이름을 다음으로 변경했습니다./usr/local/bin/pip_backup
이제 내가 물어보면 which pip
or which pip -a
가 표시됩니다 /usr/bin/pip
.
하지만 pip를 사용하여 패키지를 다운로드하거나 설치할 수 없습니다. 그것은 말한다:
[root@localhost file_name]# pip install snips-nlu
-bash: /usr/local/bin/pip: No such file or directory
some relevant
[root@localhost bot_v4.0]# which python -a /usr/bin/python
[root@localhost bot_v4.0]# which pip -a /usr/bin/pip
[root@localhost bot_v4.0]#
[root@localhost bot_v4.0]# ll /usr/bin/pip*
-rwxr-xr-x. 1 root root 407 May 5 2018 /usr/bin/pip
lrwxrwxrwx. 1 root root 9 May 5 2018 /usr/bin/pip-2 -> ./pip-2.7
-rwxr-xr-x. 1 root root 407 May 5 2018 /usr/bin/pip2
lrwxrwxrwx. 1 root root 8 May 5 2018 /usr/bin/pip-2.7 -> ./pip2.7
-rwxr-xr-x. 1 root root 407 May 5 2018 /usr/bin/pip2.7
lrwxrwxrwx. 1 root root 9 May 5 2018 /usr/bin/pip-3 -> ./pip-3.6
lrwxrwxrwx. 1 root root 8 May 5 2018 /usr/bin/pip-3.6 -> ./pip3.6
-rwxr-xr-x. 1 root root 16184 Oct 18 15:38 /usr/bin/pipewire
[root@localhost bot_v4.0]# ll /usr/local/bin/pip*
-rwxr-xr-x. 1 root root 223 Apr 4 10:25 /usr/local/bin/pip2
-rwxr-xr-x. 1 root root 223 Apr 4 10:25 /usr/local/bin/pip2.7
-rwxr-xr-x. 1 root root 216 Apr 3 17:05 /usr/local/bin/pip3
-rwxr-xr-x. 1 root root 216 Apr 3 17:05 /usr/local/bin/pip3.6
-rwxr-xr-x. 1 root root 223 Apr 4 10:25 /usr/local/bin/pip_bak