一、报错
使用清华源安装 mysqlclient 时,出现 Cannot unpack file 报错:
pipinstallmysqlclient==1.3.12-index-urlhttps://pypi.douban.com/simpleERROR: CannotunpackfileC:\Users\songjian\AppData\Local\Temp\pip-unpack-vmrr5ivz\simple.htm (downloadedfromC:\Users\songjian\AppData\Local\Temp\pip-req-build-kxphz3oa, content-type: text/html); cannotdetectarchiveformatERROR: CannotdeterminearchiveformatofC:\Users\songjian\AppData\Local\Temp\pip-req-build-kxphz3oa
二、解决办法
pipinstallmysqlclient==1.3.12-ihttps://pypi.douban.com/simple--trust-host=pypi.douban.com
其他 pip 常用换源的国内镜像网站
阿里云:http://mirrors.aliyun.com/pypi/simple/