这个问题是因为python的源服务器在国外,下载过慢。
以下载 tensorflow 为例,操作 pip install tensorflow,有可能会出现ERROR:Cannot unpack file异常
解决方法:使用国内源进行下载
pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com tensorflow
常用国内镜像源:
阿里云: http://mirrors.aliyun.com/pypi/simple/
豆瓣: http://pypi.douban.com/simple/
清华园:https://pypi.tuna.tsinghua.edu.cn/simple