版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u012193416/article/details/87454682
ImportError: No module named 'tensorflow.python
出现这个错误之后,只需要 cmd 中重新输入:
pip uninstall tensorflow
pip uninstall tensorflow-gpu
pip install tensorflow-gpu
即可,我之所以出现这个错误,是因为我把 tensoflow 卸了,只保留了 tensorflow-gpu,全部卸掉之后,再重装即可。