module 'tensorflow' has no attribute 'layers' TensorFlow运行错误,AttributeError: module 'pandas' has no attribute 'computation'

====================================

module 'tensorflow' has no attribute 'layers'

解决方法:这时已经安装的tensorflow是0.x的版本,需要重新安装tensorflow 1.0以上的版本(利用.whl安装)



====================================

TensorFlow运行错误,AttributeError: module 'pandas' has no attribute 'computation'

解决方法:把pandas降到pandas-0.19(利用.whl安装)或者升级dask到0.15以上(利用.whl安装)



====================================

import numpy时报错: cannot import name 'add_newdocs'

解决方法:pip uninstall numpy之后重新安装pip install numpy







猜你喜欢

转载自blog.csdn.net/sgfmby1994/article/details/78686857
今日推荐