pip install aliyun-python-sdk-core
pip install aliyun-python-sdk-ecs
pip3 install aliyun-python-sdk-core
安装报错:Could not build wheels for cryptography which use PEP 517 and cannot be installed directly更新pip(更新pip时需要添加sudo命令,不然可能会报错提示"Permission denied")
更新pip后再次尝试安装aliyun-python-sdk-core,安装成功!
未安装阿里云SDK的情况下,导入CommonRequest会报错,如图:
所以在安装aliyunsdkcore并导入CommonRequest之前,要先安装阿里云SDK
原文:https://www.cnblogs.com/bluefrost/p/14666461.html