gpt4 book ai didi

pip - 无法在 mac high sierra 上卸载 awscli

转载 作者:行者123 更新时间:2023-12-04 22:09:23 28 4
gpt4 key购买 nike

我最近使用 brew 升级到 Python 3 .我的 awscli 已停止工作,因为它正在尝试使用旧版本的 Python。我想尝试重新安装它,但目前我无法卸载它。

➜  ~ python --version
Python 3.6.4
➜ ~ aws confgure
zsh: /usr/local/bin/aws: bad interpreter: /usr/local/opt/python/bin/python2.7: no such file or directory
➜ ~ pip uninstall awscli
Cannot uninstall requirement awscli, not installed
➜ ~ pip3 uninstall awscli
Cannot uninstall requirement awscli, not installed
➜ ~ brew uninstall awscli
Error: No such keg: /usr/local/Cellar/awscli
➜ ~ aws configure
zsh: /usr/local/bin/aws: bad interpreter: /usr/local/opt/python/bin/python2.7: no such file or directory
➜ ~ which aws
/usr/local/bin/aws

我还能尝试卸载 awscli 吗?

最佳答案

正如 Homebrew 软件在尝试卸载/安装 awscli 时所说:

rm /usr/local/bin/aws
brew link awscli

几乎,这对我有用。

关于pip - 无法在 mac high sierra 上卸载 awscli,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49157922/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com