C:\....\Anaconda3\envs\py35\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_convertersspa
使用Anaconda安裝的Python3.5環境,導入TensorFlow時出現以下錯誤:code
<<<import tensorflow as tf C:\。..\Anaconda3\envs\py35\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`. from ._conv import register_converters as _register_converters
解決辦法:安裝Microsoft Visual C++ 2015 Redistributable Update 3 。再也不報錯。blog
--------------------------------------------分--------------------------------------------割--------------------------------------------線--------------------------------------get
啊這個不是導入失敗,應該是字符格式。輸出字符的時候,會在行前有一個b,好比b'Hello TensorFlow!'it
在打印行加上.decode()就能夠解決了,以下:io
print(sess.run(hello).decode())
Hello TensorFlow!