How to check the version of the currently installed `pdb` (Python Debugger)?
Question:
To check the version of the specific python module, I heard that the following is one of the standard way:
python -c 'import some_module; print (__some_module__.version)'
But for the python debugger ‘pdb’, the above idea doesn’t work. Then how can we check the version of the currently installed pdb?
Answers:
pip freeze
will list all currently installed packages
pip freeze | grep pdb
pdb
is a Python standard library. So the version of your Python is the version of your pdb (if we can talk about versions at all. You would usually say, pdb
in Python X)
Since pdb is in the standard library it uses pythons version number and does not have a version number of its own.
In general, modules in the standard library SHOULD NOT have version numbers. They implicitly carry the version number of the Python release they are included in.
To check the version of the specific python module, I heard that the following is one of the standard way:
python -c 'import some_module; print (__some_module__.version)'
But for the python debugger ‘pdb’, the above idea doesn’t work. Then how can we check the version of the currently installed pdb?
pip freeze
will list all currently installed packages
pip freeze | grep pdb
pdb
is a Python standard library. So the version of your Python is the version of your pdb (if we can talk about versions at all. You would usually say, pdb
in Python X)
Since pdb is in the standard library it uses pythons version number and does not have a version number of its own.
In general, modules in the standard library SHOULD NOT have version numbers. They implicitly carry the version number of the Python release they are included in.