Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"python -v" output too long

Tags:

python

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! :)

like image 358
Nick Van Hoogenstyn Avatar asked Jan 16 '23 21:01

Nick Van Hoogenstyn


1 Answers

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

like image 167
Keith Avatar answered Jan 27 '23 23:01

Keith