阿里云Python SDK安装问题记录

一、阿里云SDK安装方法(pip安装)

1、安装SDK核心库

pip install aliyun-python-sdk-core

2、安装云产品的SDK

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

posted @ 2021-04-16 12:55  大陆隔着海洋  阅读(1443)  评论(0编辑  收藏  举报