[Tutor] centos 7 - new setup.. weird python!

Mats Wichmann mats at wichmann.us
Wed Jul 19 17:01:57 EDT 2017


On 07/19/2017 02:48 PM, bruce wrote:
> Hi.
> 
> Testing setting up a new Cnntos7 instance.
> 
> I ran python -v from the cmdline...  and instantly got a bunch of the
> following! Pretty sure this isn't correct.
> 
> Anyone able to give pointers as to what I've missed.

It is expected, actually. You perhaps intended a capital v.  The
lowercase one means this:

       -v     Print  a  message each time a module is initialized,
showing the
              place (filename or built-in module) from  which  it  is
loaded.
              When  given twice, print a message for each file that is
checked
              for when searching for a module.  Also provides
information  on
              module cleanup at exit.


so you asked it to tell you  what it was doing in extra detail, and it
did :)

> 
> thanks
> 
> python -v
> # installing zipimport hook
> import zipimport # builtin
> # installed zipimport hook
> # /usr/lib64/python2.7/site.pyc matches /usr/lib64/python2.7/site.py
> import site # precompiled from /usr/lib64/python2.7/site.pyc
> # /usr/lib64/python2.7/os.pyc matches /usr/lib64/python2.7/os.py
> import os # precompiled from /usr/lib64/python2.7/os.pyc
> .
> .
> .
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
> 



More information about the Tutor mailing list