title: ModuleNotFoundError: No module named aws_cdk
body: <p>When I run <code>cdk deploy</code>, I get the following error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;app.py&quot;, line 3, in &lt;module&gt;
      from aws_cdk import core
  ModuleNotFoundError: No module named 'aws_cdk'
  </code></pre>
  <p>I installed cdk with npm</p>
  <pre><code>npm install -g aws-cdk
  </code></pre>
  <p>I activated the virtual env by</p>
  <pre><code>source .env/bin/activate
  </code></pre>
  <p>I'm using python3.8. I installed aws_cdk dependencies by</p>
  <pre><code>pip install -r requirements.txt
  </code></pre>
  <p>When editing the python files, I am able to import aws_cdk and run individual functions successfully. I think the problem is that <code>cdk</code> is located in the <code>/usr</code> directory:</p>
  <pre><code>&gt; which cdk
  /usr/local/bin/cdk
  </code></pre>
  <p>And I think it's using python from my <code>/usr/bin</code> instead of virtual env. How do I make cdk use python in my virtual environment?</p>
  <p>EDIT:</p>
  <p>requirements.txt</p>
  <pre><code>-e .
  </code></pre>