查看版本
>python Python 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import tensorflow as tf 2020-06-03 09:33:47.202356: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could no t load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found 2020-06-03 09:33:47.202356: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. >>> tf.__version__ '2.2.0' >>>
查看所在路径
>python Python 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import tensorflow as tf 2020-06-03 09:35:28.357142: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could no t load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found 2020-06-03 09:35:28.357142: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. >>> tf.__path__ ['D://Python37//lib//site-packages//tensorflow', 'D://Python37//lib//site-packages//tensorflow_estim ator//python//estimator//api//_v2', 'D://Python37//lib//site-packages//tensorboard//summary//_tf', ' D://Python37//lib//site-packages//tensorflow', 'D://Python37//lib//site-packages//tensorflow//_api// v2']
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/20475.html