ModuleNotFoundError: No module named 'tensorflow.contrib';

卸载干净tensorflow重新安装。

pip3 uninstall tensorflow

pip3 uninstall tensorflow-gpu

pip3 install tensorflow-gpu -i https://pypi.tuna.tsinghua.edu.cn/simple

你可能感兴趣的:(ModuleNotFoundError: No module named 'tensorflow.contrib';)