无法卸载AWS CLI:无法卸载要求awscli,未安装

时间:2018-01-16 06:49:21

标签: python-3.x amazon-web-services pip aws-cli

我试图在mac上安装AWS CLI但由于aws命令无法解析凭证文件而面临一些挑战。所以我决定重新安装所有东西,但又在这里面临一些问题。

我正在尝试pip uninstall awscli

Cannot uninstall requirement awscli, not installed

所以,我试试pip3 install awscli --upgrade --user给我这个:

    You are using pip version 6.0.8, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already up-to-date: awscli in ./Library/Python/3.5/lib/python/site-packages
Requirement already up-to-date: rsa<=3.5.0,>=3.1.2 in ./Library/Python/3.5/lib/python/site-packages (from awscli)
Requirement already up-to-date: docutils>=0.10 in ./Library/Python/3.5/lib/python/site-packages (from awscli)
Requirement already up-to-date: PyYAML<=3.12,>=3.10 in ./Library/Python/3.5/lib/python/site-packages (from awscli)
Requirement already up-to-date: colorama<=0.3.7,>=0.2.5 in ./Library/Python/3.5/lib/python/site-packages (from awscli)
Requirement already up-to-date: botocore==1.8.29 in ./Library/Python/3.5/lib/python/site-packages (from awscli)
Requirement already up-to-date: s3transfer<0.2.0,>=0.1.12 in ./Library/Python/3.5/lib/python/site-packages (from awscli)
Requirement already up-to-date: pyasn1>=0.1.3 in ./Library/Python/3.5/lib/python/site-packages (from rsa<=3.5.0,>=3.1.2->awscli)
Requirement already up-to-date: python-dateutil<3.0.0,>=2.1 in ./Library/Python/3.5/lib/python/site-packages (from botocore==1.8.29->awscli)
Requirement already up-to-date: jmespath<1.0.0,>=0.7.1 in ./Library/Python/3.5/lib/python/site-packages (from botocore==1.8.29->awscli)
Requirement already up-to-date: six>=1.5 in ./Library/Python/3.5/lib/python/site-packages (from python-dateutil<3.0.0,>=2.1->botocore==1.8.29->awscli)

不确定该怎么做。

2 个答案:

答案 0 :(得分:2)

您运行 pip3 install awscli uninstall awscli。不应该 pip3 uninstall awscli

答案 1 :(得分:0)

我有类似的问题。

我使用以下命令修复它。

pip3 install --no-cache-dir awscli==1.14.39