问题
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.
回答1:
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
来源:https://stackoverflow.com/questions/58779561/how-to-import-python-external-libraries-with-alexa-skill-kit-sdk