<![CDATA[Latest posts for the topic "Lỗi khi chạy "python -v"."]]> /hvaonline/posts/list/24.html JForum - http://www.jforum.net Lỗi khi chạy "python -v". python -v mặc dùng các chức năng khác thì bình thường. Mình đã search nhưng không tìm ra giải pháp nào khắc phục vấn đề này cả nên đành post lên đây nhờ các bạn giúp dùm. Còn đây là thông điệp của nó: Code:
username@linux-lappy:~$ python -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib/python2.6/site.pyc matches /usr/lib/python2.6/site.py
import site # precompiled from /usr/lib/python2.6/site.pyc
# /usr/lib/python2.6/os.pyc matches /usr/lib/python2.6/os.py
import os # precompiled from /usr/lib/python2.6/os.pyc
import errno # builtin
import posix # builtin
# /usr/lib/python2.6/posixpath.pyc matches /usr/lib/python2.6/posixpath.p
import posixpath # precompiled from /usr/lib/python2.6/posixpath.pyc
# /usr/lib/python2.6/stat.pyc matches /usr/lib/python2.6/stat.py
import stat # precompiled from /usr/lib/python2.6/stat.pyc
# /usr/lib/python2.6/genericpath.pyc matches /usr/lib/python2.6/genericpath.py
import genericpath # precompiled from /usr/lib/python2.6/genericpath.pyc
# /usr/lib/python2.6/warnings.pyc matches /usr/lib/python2.6/warnings.py
import warnings # precompiled from /usr/lib/python2.6/warnings.pyc
# /usr/lib/python2.6/linecache.pyc matches /usr/lib/python2.6/linecache.py
import linecache # precompiled from /usr/lib/python2.6/linecache.pyc
# /usr/lib/python2.6/types.pyc matches /usr/lib/python2.6/types.py
import types # precompiled from /usr/lib/python2.6/types.pyc
# /usr/lib/python2.6/UserDict.pyc matches /usr/lib/python2.6/UserDict.py
import UserDict # precompiled from /usr/lib/python2.6/UserDict.pyc
# /usr/lib/python2.6/_abcoll.pyc matches /usr/lib/python2.6/_abcoll.py
import _abcoll # precompiled from /usr/lib/python2.6/_abcoll.pyc
# /usr/lib/python2.6/abc.pyc matches /usr/lib/python2.6/abc.py
import abc # precompiled from /usr/lib/python2.6/abc.pyc
# /usr/lib/python2.6/copy_reg.pyc matches /usr/lib/python2.6/copy_reg.py
import copy_reg # precompiled from /usr/lib/python2.6/copy_reg.pyc
# /usr/lib/python2.6/sitecustomize.pyc matches /usr/lib/python2.6/sitecustomize.py
import sitecustomize # precompiled from /usr/lib/python2.6/sitecustomize.pyc
# /usr/lib/python2.6/dist-packages/apport_python_hook.pyc matches /usr/lib/python2.6/dist-packages/apport_python_hook.py
import apport_python_hook # precompiled from /usr/lib/python2.6/dist-packages/apport_python_hook.pyc
import encodings # directory /usr/lib/python2.6/encodings
# /usr/lib/python2.6/encodings/__init__.pyc matches /usr/lib/python2.6/encodings/__init__.py
import encodings # precompiled from /usr/lib/python2.6/encodings/__init__.pyc
# /usr/lib/python2.6/codecs.pyc matches /usr/lib/python2.6/codecs.py
import codecs # precompiled from /usr/lib/python2.6/codecs.pyc
import _codecs # builtin
# /usr/lib/python2.6/encodings/aliases.pyc matches /usr/lib/python2.6/encodings/aliases.py
import encodings.aliases # precompiled from /usr/lib/python2.6/encodings/aliases.pyc
# /usr/lib/python2.6/encodings/utf_8.pyc matches /usr/lib/python2.6/encodings/utf_8.py
import encodings.utf_8 # precompiled from /usr/lib/python2.6/encodings/utf_8.pyc
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib/python2.6/lib-dynload/readline.so", 2);
import readline # dynamically loaded from /usr/lib/python2.6/lib-dynload/readline.so
>>>
]]>
/hvaonline/posts/list/29225.html#180099 /hvaonline/posts/list/29225.html#180099 GMT
Re: Lỗi khi chạy "python -v". -v hay -V nhỉ?]]> /hvaonline/posts/list/29225.html#180101 /hvaonline/posts/list/29225.html#180101 GMT Re: Lỗi khi chạy "python -v". /hvaonline/posts/list/29225.html#180102 /hvaonline/posts/list/29225.html#180102 GMT Re: Lỗi khi chạy "python -v". Code:
-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.
nhầm thì nhận nhầm, có chết ai đâu nhở? ]]>
/hvaonline/posts/list/29225.html#180110 /hvaonline/posts/list/29225.html#180110 GMT
Re: Lỗi khi chạy "python -v". /hvaonline/posts/list/29225.html#180112 /hvaonline/posts/list/29225.html#180112 GMT Re: Lỗi khi chạy "python -v". /hvaonline/posts/list/29225.html#180113 /hvaonline/posts/list/29225.html#180113 GMT Re: Lỗi khi chạy "python -v". /hvaonline/posts/list/29225.html#180124 /hvaonline/posts/list/29225.html#180124 GMT Re: Lỗi khi chạy "python -v".

HoS wrote:
@Mr Bi: Xin phép hỏi cậu này nhé - Cậu có dùng linux bao giờ chưa? - Có biết python -h làm cái gì không? Nếu chưa biết những thứ này thì thôi đi, và cảm ơn cậu!  
Tôi đố cậu nhá. Đây là cái output của tôi khi chạy python -v
[debian5]$ python -v # installing zipimport hook import zipimport # builtin # installed zipimport hook # /usr/lib/python2.4/site.pyc matches /usr/lib/python2.4/site.py import site # precompiled from /usr/lib/python2.4/site.pyc # /usr/lib/python2.4/os.pyc matches /usr/lib/python2.4/os.py import os # precompiled from /usr/lib/python2.4/os.pyc import posix # builtin # /usr/lib/python2.4/posixpath.pyc matches /usr/lib/python2.4/posixpath.py import posixpath # precompiled from /usr/lib/python2.4/posixpath.pyc # /usr/lib/python2.4/stat.pyc matches /usr/lib/python2.4/stat.py import stat # precompiled from /usr/lib/python2.4/stat.pyc # /usr/lib/python2.4/UserDict.pyc matches /usr/lib/python2.4/UserDict.py import UserDict # precompiled from /usr/lib/python2.4/UserDict.pyc # /usr/lib/python2.4/copy_reg.pyc matches /usr/lib/python2.4/copy_reg.py import copy_reg # precompiled from /usr/lib/python2.4/copy_reg.pyc # /usr/lib/python2.4/types.pyc matches /usr/lib/python2.4/types.py import types # precompiled from /usr/lib/python2.4/types.pyc import japanese # directory /usr/lib/python2.4/site-packages/japanese # /usr/lib/python2.4/site-packages/japanese/__init__.pyc matches /usr/lib/python2.4/site-packages/japanese/__init__.py import japanese # precompiled from /usr/lib/python2.4/site-packages/japanese/__init__.pyc import japanese.aliases # directory /usr/lib/python2.4/site-packages/japanese/aliases # /usr/lib/python2.4/site-packages/japanese/aliases/__init__.pyc matches /usr/lib/python2.4/site-packages/japanese/aliases/__init__.py import japanese.aliases # precompiled from /usr/lib/python2.4/site-packages/japanese/aliases/__init__.pyc import encodings # directory /usr/lib/python2.4/encodings # /usr/lib/python2.4/encodings/__init__.pyc matches /usr/lib/python2.4/encodings/__init__.py import encodings # precompiled from /usr/lib/python2.4/encodings/__init__.pyc # /usr/lib/python2.4/codecs.pyc matches /usr/lib/python2.4/codecs.py import codecs # precompiled from /usr/lib/python2.4/codecs.pyc import _codecs # builtin # /usr/lib/python2.4/encodings/aliases.pyc matches /usr/lib/python2.4/encodings/aliases.py import encodings.aliases # precompiled from /usr/lib/python2.4/encodings/aliases.pyc # /usr/lib/python2.4/warnings.pyc matches /usr/lib/python2.4/warnings.py import warnings # precompiled from /usr/lib/python2.4/warnings.pyc # /usr/lib/python2.4/linecache.pyc matches /usr/lib/python2.4/linecache.py import linecache # precompiled from /usr/lib/python2.4/linecache.pyc # /usr/lib/python2.4/encodings/utf_8.pyc matches /usr/lib/python2.4/encodings/utf_8.py import encodings.utf_8 # precompiled from /usr/lib/python2.4/encodings/utf_8.pyc Python 2.4.3 (#1, May 24 2008, 13:47:28) [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2 Type "help", "copyright", "credits" or "license" for more information. dlopen("/usr/lib/python2.4/lib-dynload/readline.so", 2); import readline # dynamically loaded from /usr/lib/python2.4/lib-dynload/readline.so 
Vậy hệ thống của tôi có bị lỗi ko vậy PS: đọc kĩ output trước khi post bài, và nói với người khác cái giọng khó nghe như thế. :mrgreen:]]>
/hvaonline/posts/list/29225.html#180127 /hvaonline/posts/list/29225.html#180127 GMT
Re: Lỗi khi chạy "python -v". man chắc cũng được. và bồ vẫn chưa trả lời câu hỏi của tôi, lỗi bồ muốn nói tới là cái gì? python của tôi đây: Code:
[Sat May 09 22:40:35] whatvn@osvn:~$ python -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib/python2.6/site.pyc matches /usr/lib/python2.6/site.py
import site # precompiled from /usr/lib/python2.6/site.pyc
# /usr/lib/python2.6/os.pyc matches /usr/lib/python2.6/os.py
import os # precompiled from /usr/lib/python2.6/os.pyc
import errno # builtin
import posix # builtin
# /usr/lib/python2.6/posixpath.pyc matches /usr/lib/python2.6/posixpath.py
import posixpath # precompiled from /usr/lib/python2.6/posixpath.pyc
# /usr/lib/python2.6/stat.pyc matches /usr/lib/python2.6/stat.py
import stat # precompiled from /usr/lib/python2.6/stat.pyc
# /usr/lib/python2.6/genericpath.pyc matches /usr/lib/python2.6/genericpath.py
import genericpath # precompiled from /usr/lib/python2.6/genericpath.pyc
# /usr/lib/python2.6/warnings.pyc matches /usr/lib/python2.6/warnings.py
import warnings # precompiled from /usr/lib/python2.6/warnings.pyc
# /usr/lib/python2.6/linecache.pyc matches /usr/lib/python2.6/linecache.py
import linecache # precompiled from /usr/lib/python2.6/linecache.pyc
# /usr/lib/python2.6/types.pyc matches /usr/lib/python2.6/types.py
import types # precompiled from /usr/lib/python2.6/types.pyc
# /usr/lib/python2.6/UserDict.pyc matches /usr/lib/python2.6/UserDict.py
import UserDict # precompiled from /usr/lib/python2.6/UserDict.pyc
# /usr/lib/python2.6/_abcoll.pyc matches /usr/lib/python2.6/_abcoll.py
import _abcoll # precompiled from /usr/lib/python2.6/_abcoll.pyc
# /usr/lib/python2.6/abc.pyc matches /usr/lib/python2.6/abc.py
import abc # precompiled from /usr/lib/python2.6/abc.pyc
# /usr/lib/python2.6/copy_reg.pyc matches /usr/lib/python2.6/copy_reg.py
import copy_reg # precompiled from /usr/lib/python2.6/copy_reg.pyc
# /usr/lib/python2.6/sitecustomize.pyc matches /usr/lib/python2.6/sitecustomize.py
import sitecustomize # precompiled from /usr/lib/python2.6/sitecustomize.pyc
# /usr/lib/python2.6/dist-packages/apport_python_hook.pyc matches /usr/lib/python2.6/dist-packages/apport_python_hook.py
import apport_python_hook # precompiled from /usr/lib/python2.6/dist-packages/apport_python_hook.pyc
import encodings # directory /usr/lib/python2.6/encodings
# /usr/lib/python2.6/encodings/__init__.pyc matches /usr/lib/python2.6/encodings/__init__.py
import encodings # precompiled from /usr/lib/python2.6/encodings/__init__.pyc
# /usr/lib/python2.6/codecs.pyc matches /usr/lib/python2.6/codecs.py
import codecs # precompiled from /usr/lib/python2.6/codecs.pyc
import _codecs # builtin
# /usr/lib/python2.6/encodings/aliases.pyc matches /usr/lib/python2.6/encodings/aliases.py
import encodings.aliases # precompiled from /usr/lib/python2.6/encodings/aliases.pyc
# /usr/lib/python2.6/encodings/utf_8.pyc matches /usr/lib/python2.6/encodings/utf_8.py
import encodings.utf_8 # precompiled from /usr/lib/python2.6/encodings/utf_8.pyc
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib/python2.6/lib-dynload/readline.so", 2);
import readline # dynamically loaded from /usr/lib/python2.6/lib-dynload/readline.so
>>>
nhưng đây tôi không gọi là lỗi, mà nó thực hiện đúng với chức năng -v của nó, còn muốn biết option -v để làm gì thì bồ vui lòng đọc lại bài trả lời trước của tôi. ]]>
/hvaonline/posts/list/29225.html#180128 /hvaonline/posts/list/29225.html#180128 GMT
Re: Lỗi khi chạy "python -v". /hvaonline/posts/list/29225.html#180130 /hvaonline/posts/list/29225.html#180130 GMT Re: Lỗi khi chạy "python -v". /hvaonline/posts/list/29225.html#180137 /hvaonline/posts/list/29225.html#180137 GMT Re: Lỗi khi chạy "python -v". /hvaonline/posts/list/29225.html#180141 /hvaonline/posts/list/29225.html#180141 GMT