title: Install PyProj as a layer in AWS Lambda
body: <p>I'm trying to install Pyproj into Lambda.
  To do so, I've used this code:</p>
  <pre><code>mkdir folder
  cd folder
  virtualenv v-env
  source ./v-env/bin/activate
  pip3 install pyproj
  deactivate
  mkdir pyproj
  cd pyproj
  cp -r ../v-env/lib64/python3.6/site-packages/* .
  cd ..
  zip -r pyproj_layer.zip pyproj 
  aws lambda publish-layer-version --layer-name pyproj --zip-file fileb://pyproj_layer.zip --compatible-runtimes python3.6
  </code></pre>
  <p>All worked okay and the layer appears in Lambda, which I've added to my function.</p>
  <p>I then try to call it using the <code>import pyproj</code> command and I'm getting this error</p>
  <pre><code>Response
  {
    &quot;errorMessage&quot;: &quot;Unable to import module 's3_asset_function'&quot;
  }
  
  Function Logs
  START RequestId: aece5dcf-9fa6-4557-9682-effffffb6d7c Version: $LATEST
  Unable to import module 's3_asset_function': No module named 'pyproj'
  </code></pre>
  <p>There were no issues in zipping up and publishing the layer, and I've tried importing pyproj in my virtual environment via the python interpreter and it worked. So I'm stumped as to where the issue is with it not being able to be called in Lambda.</p>