pip安装pymssql出现ERROR: Cannot unpack file……报错解决

pip安装pymssql报错解决

pip安装命令

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pymssql

报错内容

ERROR: Cannot unpack file C:\Users\WDY\AppData\Local\Temp\pip-unpack-omb42fhl\simple.html (downloaded from C:\Users\WDY\AppData\Local\Temp\pip-req-build-lj_4f9cw, content-type: text/html); cannot detect archive format
ERROR: Cannot determine archive format of C:\Users\WDY\AppData\Local\Temp\pip-req-build-lj_4f9cw

解决办法

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pymssql命令换成
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn pymssql

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn pymssql

参考文章

[1]解决Python使用pip安装库文件出现“Error:Cannot unpack file…”的情况

你可能感兴趣的:(python,pip,pymssql,python)