[issue39975] Commands running in 3.7.6 Shell, but failing as script

Terry J. Reedy report at bugs.python.org
Fri Mar 20 16:03:14 EDT 2020


Terry J. Reedy <tjreedy at 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 <report at bugs.python.org>
<https://bugs.python.org/issue39975>
_______________________________________


More information about the Python-bugs-list mailing list