在使用国内镜像时候
python -m pip install https://pypi.douban.com/simple virtualenv
发生以下错误
ERROR: Cannot unpack file C:\Users\meng\AppData\Local\Temp\pip-unpack-29b3r11w\simple.html (downloaded from C:\Users\meng\AppData\Local\Temp\pip-req-build-6k18cvw2, content-type: text/html); cannot detect archive format
ERROR: Cannot determine archive format of C:\Users\meng\AppData\Local\Temp\pip-req-build-6k18cvw2
原因如下:
python -m pip install -i https://pypi.douban.com/simple virtualenv
加入一个 -i 就可以解决了