如何使用Alexa Skill Kit SDK导入Python外部库?

编程入门 行业动态 更新时间:2024-10-08 06:26:37
本文介绍了如何使用Alexa Skill Kit SDK导入Python外部库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用Amazon Developer Console上的Alexa Skill Kit SDK开发一项技能。我的代码具有 import numpy ,它会生成运行时错误。

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

我用Google搜索的所有解决方案都是关于上传numpy的。源代码下载到AWS上,我发现它与Alexa技能套件不相关。

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.

推荐答案

我认为您正在构建Alexa

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

作为文档说:

您可以使用Python安装依赖项。您在 requirements.txt文件中添加了依赖项。代码示例如下所示:

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

更多推荐

如何使用Alexa Skill Kit SDK导入Python外部库?

本文发布于:2023-11-28 03:40:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1640811.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   Alexa   Skill   Python   SDK

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!