zlib.error: Error -5 while decompressing data: incomplete or truncated stream

zlib.error: Error -5 while decompressing data: incomplete or truncated stream

通过pip install torch安装手电筒时抛出以下错误

Exception:
/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/serialize.py", line 176, in _loads_v2
    cached = json.loads(zlib.decompress(data).decode("utf8"))
zlib.error: Error -5 while decompressing data: incomplete or truncated stream

请帮帮我。

Removing pip's cache?

这对我有用

If using pip 6.0 or newer, try adding the --no-cache-dir option.