Terry J. Reedy <tjre...@udel.edu> added the comment:

This tracker is for improving future versions of python.  Questions about using 
current python belong on python-list or other help forums, such as 
stackoverflow.  Reading the following will help you ask good questions.
https://stackoverflow.com/help/minimal-reproducible-example

A few notes:
1. The minimal example is likely 'import tensorflow as tf'.
2. The 'shell' part of your post is not copied from an interactive session 
(IDLE?), as there are no prompts.
3. The typical reason for the same import working and then not working is 
running the import with two different python binaries with different installed 
3rd-party packages.  If you ran twice in the same IDLE, once interactively and 
once from an editor, that would not be an issue, and I would not know why the 
difference.
4. Tensorflow keras assumes that it is outputting to a text terminal, which 
IDLE is not, so there may be glitches in output formatting.

----------
nosy: +terry.reedy
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
title: Group of commands running in Python 3.7.6 Shell, but failing as Script 
file. -> Commands running in 3.7.6 Shell, but failing as script

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39975>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to