<h3id="org8f1294b">How to list imported modules?</h3>
<divclass="outline-text-3"id="text-org8f1294b">
<p>
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, which is
<h3id="org366ec78">Setting up an environment with pip</h3>
<divclass="outline-text-3"id="text-org366ec78">
<p>
The easiest way to go is as follows:
</p>
<divclass="org-src-container">
<prestyle="padding-left: 30px; background-color: #f6f8fa;"class="src src-shell">pip3 freeze > requirements.txt <spanstyle="font-weight: bold; font-style: italic;"># </span><spanstyle="font-weight: bold; font-style: italic;">to obtain the list of packages with their version</span>
pip3 install -r requirements.txt <spanstyle="font-weight: bold; font-style: italic;"># </span><spanstyle="font-weight: bold; font-style: italic;">to install the previous list of packages, possibly on an other machine</span>
</pre>
</div>
<p>
If you want to have several installed python environments, you may
want to use <ahref="https://docs.pipenv.org/">Pipenv</a>. I doubt it allows to track correctly FORTRAN or C