title: ModuleNotFoundError: No module named 'passlib' despite passlib already being installed
body: <p>I have a python module that tries to import <code>from passlib.hash import pbkdf2_sha256</code>, however when running the module, I get the ModuleNotFoundError.</p>
  <p>I have tried running the module in my base environment, a venv, in a poetry shell, and I've tried reinstalling passlib through poetry install, pip install, pip install --force-reinstall, and none of it gets the module to see passlib being installed. I'm at a complete loss as to why this library just won't work.</p>
  <p>The full error message is:</p>
  <blockquote>
  <p>poetry run src/api-keychain/main.py --help</p>
  </blockquote>
  <pre><code>Traceback (most recent call last):
    File &quot;XXX/src/api-keychain/main.py&quot;, line 5, in &lt;module&gt;
      from crypto import encrypt_key, decrypt_key
    File &quot;XXX/src/api-keychain/crypto.py&quot;, line 5, in &lt;module&gt;
      from passlib.hash import pbkdf2_sha256
  ModuleNotFoundError: No module named 'passlib'
  </code></pre>