[Tutor] for the error about 'import site' failed; use -v for traceback

C Smith illusiontechniques at gmail.com
Wed May 14 18:24:04 CEST 2014


That looks pretty normal. I don't see any errors.

On Wed, May 14, 2014 at 5:42 AM, Tao Zhu <zxl_tao at 126.com> wrote:
> Hi everyone,
> when I use python, the problem occured. when I used the command "python -v",
> the results are listed as follows. could you tell me what wrong?
>
> $ python -v
> # installing zipimport hook
> import zipimport # builtin
> # installed zipimport hook
> # /usr/local/lib/python2.4/site.pyc matches /usr/local/lib/python2.4/site.py
> import site # precompiled from /usr/local/lib/python2.4/site.pyc
> # /usr/local/lib/python2.4/os.pyc matches /usr/local/lib/python2.4/os.py
> import os # precompiled from /usr/local/lib/python2.4/os.pyc
> import posix # builtin
> # /usr/local/lib/python2.4/posixpath.pyc matches
> /usr/local/lib/python2.4/posixpath.py
> import posixpath # precompiled from /usr/local/lib/python2.4/posixpath.pyc
> # /usr/local/lib/python2.4/stat.pyc matches /usr/local/lib/python2.4/stat.py
> import stat # precompiled from /usr/local/lib/python2.4/stat.pyc
> # /usr/local/lib/python2.4/UserDict.pyc matches
> /usr/local/lib/python2.4/UserDict.py
> import UserDict # precompiled from /usr/local/lib/python2.4/UserDict.pyc
> # /usr/local/lib/python2.4/copy_reg.pyc matches
> /usr/local/lib/python2.4/copy_reg.py
> import copy_reg # precompiled from /usr/local/lib/python2.4/copy_reg.pyc
> # /usr/local/lib/python2.4/types.pyc matches
> /usr/local/lib/python2.4/types.py
> import types # precompiled from /usr/local/lib/python2.4/types.pyc
> # /usr/local/lib/python2.4/warnings.pyc matches
> /usr/local/lib/python2.4/warnings.py
> import warnings # precompiled from /usr/local/lib/python2.4/warnings.pyc
> # /usr/local/lib/python2.4/linecache.pyc matches
> /usr/local/lib/python2.4/linecache.py
> import linecache # precompiled from /usr/local/lib/python2.4/linecache.pyc
> import encodings # directory /usr/local/lib/python2.4/encodings
> # /usr/local/lib/python2.4/encodings/__init__.pyc matches
> /usr/local/lib/python2.4/encodings/__init__.py
> import encodings # precompiled from
> /usr/local/lib/python2.4/encodings/__init__.pyc
> # /usr/local/lib/python2.4/codecs.pyc matches
> /usr/local/lib/python2.4/codecs.py
> import codecs # precompiled from /usr/local/lib/python2.4/codecs.pyc
> import _codecs # builtin
> # /usr/local/lib/python2.4/encodings/aliases.pyc matches
> /usr/local/lib/python2.4/encodings/aliases.py
> import encodings.aliases # precompiled from
> /usr/local/lib/python2.4/encodings/aliases.pyc
> # /usr/local/lib/python2.4/encodings/utf_8.pyc matches
> /usr/local/lib/python2.4/encodings/utf_8.py
> import encodings.utf_8 # precompiled from
> /usr/local/lib/python2.4/encodings/utf_8.pyc
> Python 2.4.4 (#3, May 15 2014, 00:22:35)
> [GCC 3.4.4 20050721 (Red Hat 3.4.4-2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> dlopen("/usr/local/lib/python2.4/lib-dynload/readline.so", 2);
> import readline # dynamically loaded from
> /usr/local/lib/python2.4/lib-dynload/readline.so
>>>>
> Tao
>
>
>
> _______________________________________________
> 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