This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rosarion
Recipients rosarion
Date 2020-03-16.07:18:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584343119.59.0.433664804662.issue39975@roundup.psfhosted.org>
In-reply-to
Content
Python 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.

from future import absolute_import, division, print_function, unicode_literals
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
from tensorflow import keras
print(tf.version)
2.1.0

BUT IF I RUN THESE COMMANDS as a PYTHON SCRIPT FILE iy FAILS.
======================== RESTART: D:\PythonCode-1\tmp.py =======================
Traceback (most recent call last):
File "D:\PythonCode-1\tmp.py", line 7, in
import tensorflow as tf
File "C:\Python37\lib\site-packages\tensorflow_init_.py", line 101, in
from tensorflow_core import *
File "C:\Python37\lib\site-packages\tensorflow_core_init_.py", line 40, in
from tensorflow.python.tools import module_util as _module_util
ModuleNotFoundError: No module named 'tensorflow.python.tools'; 'tensorflow.python' is not a package

Why is it failing as a Script file ?
Is there something wrong in my Procedure ?

Hope to teceive your reply and Thanks in Advanced.
History
Date User Action Args
2020-03-16 07:18:39rosarionsetrecipients: + rosarion
2020-03-16 07:18:39rosarionsetmessageid: <1584343119.59.0.433664804662.issue39975@roundup.psfhosted.org>
2020-03-16 07:18:39rosarionlinkissue39975 messages
2020-03-16 07:18:39rosarioncreate