[Mon mémo] python -v / python -V

J'étais effrayé

Vouloir par inadvertance connaître la version de Python sur Cloud9 Quand j'ai tapé python -v, ça sortait beaucoup et j'étais 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>>> 

Examiné

Qu'est-ce que python -v? Avec suivi détaillé des relevés d'importation. Qu'est-ce que c'est.

Je ne ferai plus jamais d'erreur à partir de maintenant. La commande pour connaître la version de Python est python -V.

Recommended Posts

[Mon mémo] python -v / python -V
[Mon mémo] python
Astuces Python (mon mémo)
Mémo Python
mémo python
Mémo Python
mémo python
Mémo Python
Mémo Python
Mon Numpy (Python)
Mon système (Python)
[Python] Mémo sur le dictionnaire
Mon pyproj (Python)
Mon str (Python)
mémo débutant python (9.2-10)
mémo débutant python (9.1)
★ Mémo ★ Python Iroha
[Python] Mémo EDA
Mémo opérateur Python 3
Mon PySide (Python)
Mon shutil (Python)
Mon matplotlib (Python)
Mon urllib (Python)
Mon pyperclip (Python)
Mon sklearn (Python)
Mémo de métaclasse Python3
[Python] Mémo de fond de carte
Mon ConfigParser (Python)
Mon Webdriver (Python)
Mon arcpy (Python)
Mémo débutant Python (2)
[Python] Mémo Numpy
Mon win32gui (Python)
Mon système d'exploitation (Python)
Classe Python (mémo d'apprentissage Python ⑦)
installation de python openCV (mémo)
Module Python (mémo d'apprentissage Python ④)
Mémo de visualisation par Python
[Self memo] Préparation-démarrage de Django
Ma belle soupe (Python)
Mémo du package de test Python
[Python] Mémo sur les fonctions
mémo d'expression régulière python
Mémo de type Liste / Dictionnaire Python3
[Mémo] Tri de liste Python3
[Python] Mémo sur les erreurs
Mémo de script DynamoDB (Python)
Mémo de base Python - Partie 2
livre de recettes python Memo
Notes de commande de base Python
Mémo du didacticiel Python OpenCV
Mémo de grammaire de base Python
Mémo de l'API TensorFlow (Python)
liens de mémo utiles python
Mémo d'opération de décorateur Python
Mémo de base Python - Partie 1
Élément de mémo Python efficace 3
Mémo Python d'énumération approximative
Complexité du temps de leçon de codilité et mémo de réponse