This topic is discussed on <ahref="https://stackoverflow.com/questions/20180543/how-to-check-version-of-python-modules">StackOverflow</a>. When using <code>pip</code> (the Python
package installer) within a shell command, it is easy to query the
version of all installed packages (note that on your system, you may
have to use either <code>pip</code> or <code>pip3</code> depending on how it is named and which
<h3id="orgc077b2a">How to list imported modules?</h3>
<h3id="org9a2ced1">How to list imported modules?</h3>
<divclass="outline-text-3"id="text-orgc077b2a">
<divclass="outline-text-3"id="text-org9a2ced1">
<p>
<p>
Inspiring from <ahref="https://stackoverflow.com/questions/4858100/how-to-list-imported-modules">StackOverflow</a>, here is a simple function that lists
Without resorting to pip (that will list all available packages), you
loaded package (that have a <code>__version__</code> attribute, which is
may want to know which modules are loaded in a Python session as well
unfortunately not completely standard).
as their version. Inspiring from <ahref="https://stackoverflow.com/questions/4858100/how-to-list-imported-modules">StackOverflow</a>, here is a simple
function that lists loaded package (that have a <code>__version__</code> attribute,