为什么现在pip下载tensorflow-gpu还要mxnet的GPU版本都这么难,完全下载不下来,重复了无数次都是下到中途就卡住报错了,换了各种国内源也不行,在安装包前面添加 --upgrade也不行,下载命令如下:
pip install --upgrade tensorflow-gpu==1.14.0 --default-timeout=5000 -i https://pypi.tuna.tsinghua.edu.cn/simple
报错是这样的:
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE
REQUIREMENTS FILE. If you have updated the package versions, please
update the hashes. Otherwise, examine the package contents carefully;
someone may have tampered with them.
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu 试试
tensorflow-gpu现在还是建议使用anaconda安装比较方便,推荐阅读:https://www.jianshu.com/p/0e5a18d8dadb