[Tutor] python -v command

Stephanie pythoninfo at dodgycauldron.com
Fri May 2 17:33:56 CEST 2008


Hi,
I'm at a very beginning level of Python knowledge, but I use several Python
programs via the Macintosh Unix Terminal.  I was trying to quickly see which
version of Python I am running and typed in the command "python -v".  That
was obviously not the correct command to use.  It installed several things
and now I'm unable to run my Python programs.

Can someone tell me if there there is a way to undo the python -v command?
Any suggestions for how I can remedy the situation.

I'm ready to crawl into a dark hole and hide - I feel very foolish!  Thanks
so much for putting up with a newbie's silly question.

Here's the Terminal output in case that helps at all:
admin$ python -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site.pyc
matches
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site.py
import site # precompiled from
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site.pyc
# /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/os.pyc
matches
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/os.py
import os # precompiled from
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/os.pyc
import posix # builtin
#
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/posixpath.pyc
matches
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/posixpath.py
import posixpath # precompiled from
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/posixpath.pyc
# /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/stat.pyc
matches
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/stat.py
import stat # precompiled from
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/stat.pyc
#
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/UserDict.pyc
matches
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/UserDict.py
import UserDict # precompiled from
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/UserDict.pyc
#
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/copy_reg.pyc
matches
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/copy_reg.py
import copy_reg # precompiled from
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/copy_reg.pyc
# /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/types.pyc
matches
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/types.py
import types # precompiled from
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/types.pyc
#
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/warnings.pyc
matches
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/warnings.py
import warnings # precompiled from
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/warnings.pyc
#
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/linecache.pyc
matches
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/linecache.py
import linecache # precompiled from
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/linecache.pyc
import encodings # directory
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/encodings
#
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/encodings/__init__.pyc
matches
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/encodings/__init__.py
import encodings # precompiled from
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/encodings/__init__.pyc
# /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/codecs.pyc
matches
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/codecs.py
import codecs # precompiled from
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/codecs.pyc
import _codecs # builtin
#
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/encodings/aliases.pyc
matches
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/encodings/aliases.py
import encodings.aliases # precompiled from
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/encodings/aliases.pyc
#
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/encodings/ascii.pyc
matches
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/encodings/ascii.py
import encodings.ascii # precompiled from
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/encodings/ascii.pyc
Python 2.4.4 (#1, Oct 18 2006, 10:34:39)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import readline # dynamically loaded from
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/readline.so
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080502/792c4870/attachment.htm>


More information about the Tutor mailing list