title: How to solve "Runtime.ImportModuleError" No module named 'mysql' in AWS lambda?
body: <p>I'm testing Python script in Lambda, it gave me an error:</p>
  <pre><code>{
    &quot;errorMessage&quot;: &quot;Unable to import module 'pythonfilename': No module named 'mysql'&quot;,
    &quot;errorType&quot;: &quot;Runtime.ImportModuleError&quot;
  }
  </code></pre>
  <p>How can I fix this? When I tested the script locally I got the same error, but after I upgrade <code>pip</code> to 20.2.2 then <code>pip install mysql-connector</code> this error has been solved locally, how can I solve this issue in Lambda env? Thanks.</p>