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

使用Anaconda安装的Python3.5环境,导入TensorFlow时出现如下错误:

<<<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 。不再报错。

导入TensorFlow报错

 --------------------------------------------分--------------------------------------------割--------------------------------------------线--------------------------------------

啊这个不是导入失败,应该是字符格式。输出字符的时候,会在行前有一个b,比如导入TensorFlow报错b'Hello TensorFlow!'

在打印行加上.decode()就可以解决了,如下:

print(sess.run(hello).decode())
Hello TensorFlow! 

 

相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2021-07-27
  • 2021-06-11
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-28
  • 2022-01-20
  • 2021-08-06
  • 2021-12-23
  • 2021-05-01
  • 2022-12-23
  • 2021-03-31
相关资源
相似解决方案