[My memo] python -v / python -V

I was scared

Inadvertently wanting to know the version of Python on Cloud9 When I typed python -v, it came out a lot and I was impatient

import _frozen_importlib # frozen
import _imp # builtin
import sys # builtin
import '_warnings' # <class '_frozen_importlib.BuiltinImporter'>
import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
import '_frozen_importlib_external' # <class '_frozen_importlib.FrozenImporter'>
import '_io' # <class '_frozen_importlib.BuiltinImporter'>
import 'marshal' # <class '_frozen_importlib.BuiltinImporter'>
import 'posix' # <class '_frozen_importlib.BuiltinImporter'>
import _thread # previously loaded ('_thread')
import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
import _weakref # previously loaded ('_weakref')
import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
# installing zipimport hook
import 'zipimport' # <class '_frozen_importlib.BuiltinImporter'>
# installed zipimport hook
# /usr/lib64/python3.6/encodings/__pycache__/__init__.cpython-36.pyc matches /usr/lib64/python3.6/encodings/__init__.py
# code object from '/usr/lib64/python3.6/encodings/__pycache__/__init__.cpython-36.pyc'
# /usr/lib64/python3.6/__pycache__/codecs.cpython-36.pyc matches /usr/lib64/python3.6/codecs.py
# code object from '/usr/lib64/python3.6/__pycache__/codecs.cpython-36.pyc'
import '_codecs' # <class '_frozen_importlib.BuiltinImporter'>
import 'codecs' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec9b2208>
# /usr/lib64/python3.6/encodings/__pycache__/aliases.cpython-36.pyc matches /usr/lib64/python3.6/encodings/aliases.py
# code object from '/usr/lib64/python3.6/encodings/__pycache__/aliases.cpython-36.pyc'
import 'encodings.aliases' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec9c0ba8>
import 'encodings' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbeca26d30>
# /usr/lib64/python3.6/encodings/__pycache__/utf_8.cpython-36.pyc matches /usr/lib64/python3.6/encodings/utf_8.py
# code object from '/usr/lib64/python3.6/encodings/__pycache__/utf_8.cpython-36.pyc'
import 'encodings.utf_8' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec9ce9b0>
import '_signal' # <class '_frozen_importlib.BuiltinImporter'>
# /usr/lib64/python3.6/encodings/__pycache__/latin_1.cpython-36.pyc matches /usr/lib64/python3.6/encodings/latin_1.py
# code object from '/usr/lib64/python3.6/encodings/__pycache__/latin_1.cpython-36.pyc'
import 'encodings.latin_1' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec9d44e0>
# /usr/lib64/python3.6/__pycache__/io.cpython-36.pyc matches /usr/lib64/python3.6/io.py
# code object from '/usr/lib64/python3.6/__pycache__/io.cpython-36.pyc'
# /usr/lib64/python3.6/__pycache__/abc.cpython-36.pyc matches /usr/lib64/python3.6/abc.py
# code object from '/usr/lib64/python3.6/__pycache__/abc.cpython-36.pyc'
# /usr/lib64/python3.6/__pycache__/_weakrefset.cpython-36.pyc matches /usr/lib64/python3.6/_weakrefset.py
# code object from '/usr/lib64/python3.6/__pycache__/_weakrefset.cpython-36.pyc'
import '_weakrefset' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec9da470>
import 'abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec9d4ac8>
import 'io' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec9d4710>
# /usr/lib64/python3.6/__pycache__/site.cpython-36.pyc matches /usr/lib64/python3.6/site.py
# code object from '/usr/lib64/python3.6/__pycache__/site.cpython-36.pyc'
# /usr/lib64/python3.6/__pycache__/os.cpython-36.pyc matches /usr/lib64/python3.6/os.py
# code object from '/usr/lib64/python3.6/__pycache__/os.cpython-36.pyc'
import 'errno' # <class '_frozen_importlib.BuiltinImporter'>
# /usr/lib64/python3.6/__pycache__/stat.cpython-36.pyc matches /usr/lib64/python3.6/stat.py
# code object from '/usr/lib64/python3.6/__pycache__/stat.cpython-36.pyc'
import '_stat' # <class '_frozen_importlib.BuiltinImporter'>
import 'stat' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec97e7f0>
# /usr/lib64/python3.6/__pycache__/posixpath.cpython-36.pyc matches /usr/lib64/python3.6/posixpath.py
# code object from '/usr/lib64/python3.6/__pycache__/posixpath.cpython-36.pyc'
# /usr/lib64/python3.6/__pycache__/genericpath.cpython-36.pyc matches /usr/lib64/python3.6/genericpath.py
# code object from '/usr/lib64/python3.6/__pycache__/genericpath.cpython-36.pyc'
import 'genericpath' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec987208>
import 'posixpath' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec97eeb8>
# /usr/lib64/python3.6/__pycache__/_collections_abc.cpython-36.pyc matches /usr/lib64/python3.6/_collections_abc.py
# code object from '/usr/lib64/python3.6/__pycache__/_collections_abc.cpython-36.pyc'
import '_collections_abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec987828>
import 'os' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec973128>
# /usr/lib64/python3.6/__pycache__/_sitebuiltins.cpython-36.pyc matches /usr/lib64/python3.6/_sitebuiltins.py
# code object from '/usr/lib64/python3.6/__pycache__/_sitebuiltins.cpython-36.pyc'
import '_sitebuiltins' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec973518>
# /usr/lib64/python3.6/__pycache__/sysconfig.cpython-36.pyc matches /usr/lib64/python3.6/sysconfig.py
# code object from '/usr/lib64/python3.6/__pycache__/sysconfig.cpython-36.pyc'
import 'sysconfig' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec919c88>
# /usr/lib64/python3.6/__pycache__/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.pyc matches /usr/lib64/python3.6/_sysconfigdata_m_linux_x86_64-linux-gnu.py
# code object from '/usr/lib64/python3.6/__pycache__/_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.pyc'
import '_sysconfigdata_m_linux_x86_64-linux-gnu' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec92f5c0>
# /usr/lib64/python3.6/__pycache__/_bootlocale.cpython-36.pyc matches /usr/lib64/python3.6/_bootlocale.py
# code object from '/usr/lib64/python3.6/__pycache__/_bootlocale.cpython-36.pyc'
import '_locale' # <class '_frozen_importlib.BuiltinImporter'>
import '_bootlocale' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec93c518>
# /usr/lib64/python3.6/__pycache__/types.cpython-36.pyc matches /usr/lib64/python3.6/types.py
# code object from '/usr/lib64/python3.6/__pycache__/types.cpython-36.pyc'
# /usr/lib64/python3.6/__pycache__/functools.cpython-36.pyc matches /usr/lib64/python3.6/functools.py
# code object from '/usr/lib64/python3.6/__pycache__/functools.cpython-36.pyc'
import '_functools' # <class '_frozen_importlib.BuiltinImporter'>
# /usr/lib64/python3.6/collections/__pycache__/__init__.cpython-36.pyc matches /usr/lib64/python3.6/collections/__init__.py
# code object from '/usr/lib64/python3.6/collections/__pycache__/__init__.cpython-36.pyc'
# /usr/lib64/python3.6/__pycache__/operator.cpython-36.pyc matches /usr/lib64/python3.6/operator.py
# code object from '/usr/lib64/python3.6/__pycache__/operator.cpython-36.pyc'
import '_operator' # <class '_frozen_importlib.BuiltinImporter'>
import 'operator' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec8f6278>
# /usr/lib64/python3.6/__pycache__/keyword.cpython-36.pyc matches /usr/lib64/python3.6/keyword.py
# code object from '/usr/lib64/python3.6/__pycache__/keyword.cpython-36.pyc'
import 'keyword' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec9014e0>
# /usr/lib64/python3.6/__pycache__/heapq.cpython-36.pyc matches /usr/lib64/python3.6/heapq.py
# code object from '/usr/lib64/python3.6/__pycache__/heapq.cpython-36.pyc'
# extension module '_heapq' loaded from '/usr/lib64/python3.6/lib-dynload/_heapq.cpython-36m-x86_64-linux-gnu.so'
# extension module '_heapq' executed from '/usr/lib64/python3.6/lib-dynload/_heapq.cpython-36m-x86_64-linux-gnu.so'
import '_heapq' # <_frozen_importlib_external.ExtensionFileLoader object at 0x7ffbec902240>
import 'heapq' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec901cf8>
import 'itertools' # <class '_frozen_importlib.BuiltinImporter'>
# /usr/lib64/python3.6/__pycache__/reprlib.cpython-36.pyc matches /usr/lib64/python3.6/reprlib.py
# code object from '/usr/lib64/python3.6/__pycache__/reprlib.cpython-36.pyc'
import 'reprlib' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec8fa9e8>
import '_collections' # <class '_frozen_importlib.BuiltinImporter'>
import 'collections' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec8d5940>
# /usr/lib64/python3.6/__pycache__/weakref.cpython-36.pyc matches /usr/lib64/python3.6/weakref.py
# code object from '/usr/lib64/python3.6/__pycache__/weakref.cpython-36.pyc'
import 'weakref' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec8d5d30>
import 'functools' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec8c91d0>
# /usr/lib64/python3.6/collections/__pycache__/abc.cpython-36.pyc matches /usr/lib64/python3.6/collections/abc.py
# code object from '/usr/lib64/python3.6/collections/__pycache__/abc.cpython-36.pyc'
import 'collections.abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec8c9f28>
import 'types' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec942518>
# /usr/lib64/python3.6/importlib/__pycache__/__init__.cpython-36.pyc matches /usr/lib64/python3.6/importlib/__init__.py
# code object from '/usr/lib64/python3.6/importlib/__pycache__/__init__.cpython-36.pyc'
# /usr/lib64/python3.6/__pycache__/warnings.cpython-36.pyc matches /usr/lib64/python3.6/warnings.py
# code object from '/usr/lib64/python3.6/__pycache__/warnings.cpython-36.pyc'
import 'warnings' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec8cd160>
import 'importlib' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbec942748>
# /usr/lib64/python3.6/importlib/__pycache__/util.cpython-36.pyc matches /usr/lib64/python3.6/importlib/util.py
# code object from '/usr/lib64/python3.6/importlib/__pycache__/util.cpython-36.pyc'
# /usr/lib64/python3.6/importlib/__pycache__/abc.cpython-36.pyc matches /usr/lib64/python3.6/importlib/abc.py
# code object from '/usr/lib64/python3.6/importlib/__pycache__/abc.cpython-36.pyc'
# /usr/lib64/python3.6/importlib/__pycache__/machinery.cpython-36.pyc matches /usr/lib64/python3.6/importlib/machinery.py
# code object from '/usr/lib64/python3.6/importlib/__pycache__/machinery.cpython-36.pyc'
import 'importlib.machinery' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbe5150630>
import 'importlib.abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7ffbe5150048>
# /usr/lib64/python3.6/__pycache__/contextlib.cpython-36.pyc matches /usr/lib64/python3.6/co>>> 

Examined

What is python -v? With detailed import statement tracking. what is that.

I'll never make a mistake from now on. The command to find out the Python version is python -V.

Recommended Posts

[My memo] python -v / python -V
[My memo] python
My python environment memo
Python Tips (my memo)
Python memo
python memo
Python memo
python memo
Python memo
Python memo
Python memo
My Numpy (Python)
My sys (python)
[Python] Memo dictionary
My pyproj (python)
My str (python)
python beginner memo (9.2-10)
python beginner memo (9.1)
★ Memo ★ Python Iroha
[Python] EDA memo
Python 3 operator memo
My PySide (Python)
My shutil (python)
My matplotlib (python)
My urllib (python)
My pyperclip (python)
My sklearn (python)
Python3 metaclass memo
[Python] Basemap memo
My ConfigParser (Python)
My Webdriver (Python)
My arcpy (python)
Python beginner memo (2)
[Python] Numpy memo
My win32gui (Python)
My os (python)
Python class (Python learning memo ⑦)
python openCV installation (memo)
Python module (Python learning memo ④)
Visualization memo by Python
[My memo] Preparing Django-Starting
My Beautiful Soup (Python)
Python test package memo
[Python] Memo about functions
python regular expression memo
Python3 List / dictionary memo
[Memo] Python3 list sort
[Python] Memo about errors
DynamoDB Script Memo (Python)
Python basic memo --Part 2
python recipe book Memo
Basic Python command memo
Python OpenCV tutorial memo
Python basic grammar memo
TensorFlow API memo (Python)
python useful memo links
Python decorator operation memo
Python basic memo --Part 1
Effective Python Memo Item 3
Divisor enumeration Python memo
Codility lesson time complexity and my answer memo (Python)