[英]Azure ML Studio Execute Python Script Error - No module named 'azure.cognitiveservices'
I'm getting below error in Azure ML Studio while running 'Execute Python Script' Error - No module named 'azure.cognitiveservices'我在 Azure ML Studio 中遇到错误,同时运行“执行 Python 脚本”错误 - 没有名为“azure.cognitiveservices”的模块
its really strange why it can't find azure inside azure?真的很奇怪,为什么在 azure 中找不到 azure?
However the same python script works fine when I run it through Jupyter Notebook但是,当我通过 Jupyter Notebook 运行相同的 python 脚本时,它可以正常工作
The Execute Python Script contains pre-installed packages mentioned in this list .执行 Python 脚本包含此列表中提到的预安装包。
So in your case the cognitive services is not included - hence the error.因此,在您的情况下,不包括认知服务 - 因此出现错误。
You can install the package by including the below code您可以通过包含以下代码来安装 package
import os
os.system(f"pip install <Packagename>")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.