Search code examples
pythonimportalexa-skills-kit

How to import Python external libraries with Alexa Skill Kit SDK?


I am developing a skill using Alexa Skill Kit SDK on Amazon Developer Console. My code has import numpy, which generates a runtime error.

All solutions that I have googled are about uploading numpy source code onto AWS, which I do not find it relevant to the Alexa Skill Kit.


Solution

  • I think you are building an Alexa-hosted skill in python.

    As the docs says:

    You can use Python to install dependencies. You add dependencies in the requirements.txt file. An example of the code is shown below:

    boto3==1.9.216