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! :)
You need to use uppercase V for the version. the -v
flag means "verbose", and will show all its import search activity .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With