当我在 python3.6 中调用任何函数时,我得到以下错误;但是,它在 python3.4 中工作正常 . 任何的想法? import tensorflow as tf tf.Session() Traceback(最近一次调用最后一次):文件“”,第1行,在AttributeError中:模块'tensorflow'没有属性'Session'

这是我的系统信息

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04) :Debian 8.7

  • TensorFlow installed from (source or binary) :通过pip3

  • TensorFlow version (use command below) :1.7.0

  • Python version :3.6.5

  • CUDA/cuDNN version :cuda 9.0和cudnn 7.0

  • GPU model and memory :K80,12 GB

  • Exact command to reproduce :将tensorflow导入为tf tf.Session()