您好我已经通过 pip3 在 centos8 中安装了 awscli,我可以在我的 /root/.local/bin 目录中看到文件
-rwxr-xr-x 1 root root 817 Mar 4 18:50 aws
-rwxr-xr-x 1 root root 204 Mar 4 18:49 aws_bash_completer
-rwxr-xr-x 1 root root 1432 Mar 4 18:49 aws.cmd
-rwxr-xr-x 1 root root 1138 Mar 4 18:50 aws_completer
-rwxr-xr-x 1 root root 1807 Mar 4 18:49 aws_zsh_completer.sh
-rwxr-xr-x 1 root root 218 Mar 4 18:49 pyrsa-decrypt
-rwxr-xr-x 1 root root 234 Mar 4 18:49 pyrsa-decrypt-bigfile
-rwxr-xr-x 1 root root 218 Mar 4 18:49 pyrsa-encrypt
-rwxr-xr-x 1 root root 234 Mar 4 18:49 pyrsa-encrypt-bigfile
-rwxr-xr-x 1 root root 216 Mar 4 18:49 pyrsa-keygen
-rwxr-xr-x 1 root root 239 Mar 4 18:49 pyrsa-priv2pub
-rwxr-xr-x 1 root root 212 Mar 4 18:49 pyrsa-sign
-rwxr-xr-x 1 root root 216 Mar 4 18:49 pyrsa-verify
但是当我尝试使用“aws configure”来建立凭据或简单地使用“aws --version”查看版本时,我得到:
bash: aws: command not found
当我运行“pip3 uninstall awscli”并且在卸载之前它会显示一个文件列表,其中一些在我查找它们时找不到,例如站点包文件夹中的文件,例如:
Uninstalling awscli-1.18.14:
/root/.local/bin/aws
/root/.local/bin/aws.cmd
/root/.local/bin/aws_bash_completer
/root/.local/bin/aws_completer
/root/.local/bin/aws_zsh_completer.sh
/root/.local/lib/python3.6/site-packages/awscli-1.18.14.dist-info/DESCRIPTION.rst
/root/.local/lib/python3.6/site-packages/awscli-1.18.14.dist-info/INSTALLER
/root/.local/lib/python3.6/site-packages/awscli-1.18.14.dist-info/METADATA
/root/.local/lib/python3.6/site-packages/awscli-1.18.14.dist-info/RECORD
我应该怎么办?