在 运行 aws 时获得 "DistributionNotFound"

Getting a "DistributionNotFound" when running aws

我正尝试在 linux 机器上 运行 aws shell。安装 aws 和 boto 后,出现此错误:

pkg_resources.DistributionNotFound: boto

但是 boto 显然已安装,如 pip freeze 输出所示。我做错了什么?

我在 github 中发现了 this 个问题,那里的一个答案解决了我的问题,所以我记录下来以供后代使用:

pip uninstall boto
pip install -U gsutil