lz今天用pycharm下的Terminal敲入 pip install cssselect i https://pypi.tuna.tsinghua.edu.cn/simple
出现: ERROR: Cannot unpack file C:\Users\lala\AppData\Local\Temp\pip-unpack-muu6zi__\simple.htm (downloaded from C:\Users\lala\AppData\Local\Temp\pip-req-build-cbsjo2h7, content-type: text/html); cannot detect archive format
ERROR: Cannot determine archive format of C:\Users\lala\AppData\Local\Temp\pip-req-build-_17zylg8
(如下图)
打开Temp文件夹,找不到pip-req-build-cbsjo2h7,又以为是镜像的问题,又换了清华的镜像,还是同样的错误。(如下图)
后来参考了一篇文章(地址:https://blog.csdn.net/cn_1937/article/details/81449484)
pip命令写为:pip install i https://pypi.tuna.tsinghua.edu.cn/simple 模块名 ,成功安装!(如下图)