执行命令:

# 安装matplotlib依赖
pip install matplotlib-i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

出现问题:

 ERROR: Cannot unpack file C:\Users\33659\AppData\Local\Temp\pip-unpack-0au_blfq\simple (downloaded from C:\Users\33659\AppData\Local\Temp\pip-req-build-x6txrwuh, content-type: text/html; charset=utf-8); cannot detect archive format
ERROR: Cannot determine archive format of C:\Users\33659\AppData\Local\Temp\pip-req-build-x6txrwuh

在这里插入图片描述

解决办法:

# 使用清华源进行安装
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn matplotlib(包名)
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐