NameError: name 'core' is not defined

Albert

I'm following the turtorial https://www.tensorflow.org/install/install_windows, But when I try to import tensorflow, it comes with an error:

Traceback (most recent call last):
File "", line 1, in import tensorflow as tf
File "D:\Python 3.5.3\lib\site-packages\tensorflow__init__.py", line 51, in
del core
NameError: name 'core' is not defined

The tensorflow installation command is

pip3 install --upgrade tensorflow

The full code is here >

import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')    
sess = tf.Session()                   
print(sess.run(hello))

The python version is 3.5.3 by the way

Is there any way to solve this problem? Thanks in advance.

Albert

I have solved this problem by unticking the option 'Precompile standard library' while installing Python.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related