Ask questionsAttributeError: module 'tensorflow' has no attribute 'Session'

import tensorflow as tf sess = tf.Session()

AttributeError Traceback (most recent call last) <ipython-input-9-f75057d1d95f> in <module> ----> 1 sess = tf.Session()

AttributeError: module 'tensorflow' has no attribute 'Session' Environment details : Anaconda Python : 3.6 tensorflow version : 2.0.0 Machine (OS) : LINUX , Ubuntu 16.04

New to tensorflow, I am facing this error help me with this!


Answer questions oanush

@shreyasharma98 , can you please check @nikochiko reponse and let us know if it helped.Thanks!


Related questions

ModuleNotFoundError: No module named 'tensorflow.contrib' hot 8
Error occurred when finalizing GeneratorDataset iterator
ModuleNotFoundError: No module named 'tensorflow.contrib'
Lossy conversion from float32 to uint8. Range [0, 1]. Convert image to uint8 prior to saving to suppress this warning. hot 4
TF2.0 AutoGraph issue hot 4
When importing TensorFlow, error loading Hadoop hot 4
tensorflow2.0 detected 'xla_gpu' , but 'gpu' expected hot 3
The flag 'log_dir' is defined twice. hot 3
[TF 2.0] Dataset has no attribute 'make_one_shot_iterator' hot 3
ImportError: No module named '' hot 3
Tensorflow 2.0 error when used via pyinstaller build - ImportError: cannot import name 'pywrap_tensorflow' from 'tensorflow_core.python' hot 3
Tf.Keras metrics issue hot 3
Error loading tensorflow hot 3
AttributeError: module 'tensorflow' has no attribute 'set_random_seed' hot 3
module 'tensorflow' has no attribute 'ConfigProto' hot 3
Github User Rank List