我安装了Anaconda(OS Windows 10),然后创建了env tensorflow-gpu和conda cmd安装tensorflow-gpu,tensorflow,jupyter notebook . 我从本教程中做了每一步 - https://medium.com/@viveksingh.heritage/how-to-install-tensorflow-gpu-version-with-jupyter-windows-10-in-8-easy-steps-8797547028a4,然后尝试使用conda而不是pip,卸载anaconda,安装anaconda以确保,sys显示我正确的路径,但没有任何工作 . 我有这个错误:error

和这条路path

我不知道,接下来要做什么,让它发挥作用 . 奇怪的是,在python(交互模式)中,如果我用pip安装它,它的工作:

Python 3.6.5 | Anaconda,Inc . | (默认情况下,2018年3月29日,13:32:41)win32上的[MSC v.1900 64 bit(AMD64)]输入“help”,“copyright”,“credits”或“license”以获取更多信息 .

import tensorflow as tf C:\ Users \ ... \ Anaconda3 \ lib \ site-packages \ h5py__init __ . py:36:FutureWarning:不推荐将issubdtype的第二个参数从float转换为np.floating . 将来,它将被视为np.float64 == np.dtype(float).type . 从._conv import register_converters as _register_converters sess = tf.Session(config = tf.ConfigProto(log_device_placement = True))2018-08-05 17:06:37.249819:IT:\ src \ github \ tensorflow \ tensorflow \ core \ common_runtime \ gpu \ gpu_device.cc:1392]找到具有属性的设备0:名称:GeForce GTX 1070 major:6 minor:1 memoryClockRate(GHz):1.7715 pciBusID:0000:01:00.0 totalMemory:8.00GiB freeMemory:6.64GiB 2018-08- 05 17:06:37.254558:IT:\ src \ github \ tensorflow \ tensorflow \ core \ common_runtime \ gpu \ gpu_device.cc:1471]添加可见的gpu设备:0 2018-08-05 17:06:43.329235:IT:\ src \ github \ tensorflow \ tensorflow \ core \ common_runtime \ gpu \ gpu_device.cc:952]具有强度1边缘矩阵的设备互连StreamExecutor:2018-08-05 17:06:43.331939:IT:\ src \ github \ tensorflow \ tensorflow \ core \ common_runtime \ gpu \ gpu_device.cc:958] 0 2018-08-05 17:06:43.333489:IT:\ src \ github \ tensorflow \ tensorflow \ core \ common_runtime \ gpu \ gpu_device.cc:971] 0: N 2018-08-05 17:06:43.335098:IT:\ src \ github \ tensorflow \ tensorflow \ core \ common_runtime \ gpu \ gpu_device.cc:1084]创建TensorFlow设备(/ job:localhost / replica:0 /任务:0 /设备:GPU:0,内存为6409 MB) - >物理GPU(设备:0,名称:GeForce GTX 1070,pci总线ID:0000:01:00.0,计算能力:6.1)设备映射:/ job:localhost / replica:0 / task:0 / device:GPU:0 - > device:0,name: GeForce GTX 1070,pci总线ID:0000:01:00.0,计算能力:6.1 2018-08-05 17:06:43.601357:IT:\ src \ github \ tensorflow \ tensorflow \ core \ common_runtime \ direct_session.cc:288]设备映射:/ job:localhost / replica:0 / task:0 / device:GPU:0 - > device:0,name:GeForce GTX 1070,pci bus id:0000:01:00.0,计算能力:6.1 quit()

所以我在这里尝试作为最后的改变