Tensorflow 2.0 DLL load failed: 找不到指定的模块

安装Tensorflow 2.0以后,运行

import tensorflow as tf

出现下面的错误:

原因及解决的办法:以前是用pip install tensorflow-gpu安装的,没有指定版本,删除以前安装的版本,指定版本为2.0.0-alpha0安装:

pip install tensorflow-gpu==2.0.0-alpha0 -i https://pypi.tuna.tsinghua.edu.cn/simple --default-timeout=10000
posted @ 2020-06-16 14:07  MSTK  阅读(918)  评论(0编辑  收藏  举报