首先需要在本地安装 pip 以进行包管理。如果 pip 未安装,请参考 pip 官方文档安装 pip。
在命令行中使用以下命令来安装特定版本的 Boto3:
pip install boto3==1.9.42
其中,1.9.42 是你所需安装的 Boto3 版本。可以在 Boto3 release history 页面查找特定版本的版本号。
pip uninstall boto3
pip install boto3==1.9.42
import boto3
print(boto3.__version__)
输出应为 1.9.42(或你所需安装的版本号)。
上一篇:AWSBoto3IotDataPublishNotworkingwithforwardslash
下一篇:AWSBoto3send_command()在Ubuntu上始终失败,“调用SendCommand操作时出错(InvalidInstanceId)”