Nick Van Hoogenstyn Nick Van Hoogenstyn - 10 months ago 70
Python Question

"python -v" output too long

I just installed Ubuntu on my laptop, and I entered

python -v
in the terminal to see if Python was installed. It is indeed installed, but before the line detailing the version I have installed (e.g.
Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
, there is a large amount of output with lines like:

# installing zipimport hook
import zipimport # builtin
import errno # builtin

If I remember correctly, this sort of thing isn't usually output from
python -v
. Also, when I use CTRL + D to exit the interpreter, I get a series of outputs that look like:

# cleanup[2] warnings
# clear sys.path_hooks

Can someone explain what's going on here, and if something is wrong how I can fix it? Thanks. Also, if this is actually what the output is and my memory is wrong, that would be great! :)

Answer Source

You need to use uppercase V for the version. the -v flag means "verbose", and will show all its import search activity .