执行命令:
# 安装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(包名)