1.安装环境:Windows10、CUDA8.0+cuDNN7.1
pip install tensorflow-gpu
默认安装了1.12.0版本
Requirement already satisfied: setuptools in c:\users\yu\appdata\local\conda\conda\envs\keras\lib\site-packages (from protobuf>=3.6.1->tensorflow-gpu) (40.6.2)
Installing collected packages: tensorflow-gpu
Successfully installed tensorflow-gpu-1.12.0
2.测试tensorflow时报错如下:
ImportError: Traceback (most recent call last):
File "C:\Users\yu\AppData\Local\conda\conda\envs\keras\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\yu\AppData\Local\conda\conda\envs\keras\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\yu\AppData\Local\conda\conda\en