简体   繁体   English

Azure ML Studio 执行 Python 脚本错误 - 没有名为“azure.cognitiveservices”的模块

[英]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.

相关问题 Python ModuleNotFoundError:没有名为“azure.cognitiveservices”的模块 - Python ModuleNotFoundError: No module named 'azure.cognitiveservices' ModuleNotFoundError:没有名为“azure.cognitiveservices”的模块 - ModuleNotFoundError: No module named 'azure.cognitiveservices' 在Azure ML Studio中执行Python脚本 - Executing Python script in Azure ML studio ModuleNotFoundError:没有名为“azure.cognitiveservices.vision.customvision”的模块 - ModuleNotFoundError: No module named 'azure.cognitiveservices.vision.customvision' 如何在“执行python脚本”部分的azure ml studio中将外部pickle文件内容作为数据框加载? - How to load an external pickle file contents as a data frame in azure ml studio in the 'execute python script' section? Azure ML执行Python模块:禁用网络I / O? - Azure ML Execute Python Module: Network I/O Disabled? Azure ML-执行Python脚本-Datatime.date不起作用 - Azure ML- Execute Python Script -Datatime.date not working 错误尝试在python环境中安装azure-cognitiveservices-speech==1.13.0 - Error try to install azure-cognitiveservices-speech==1.13.0 in python environment 从Python脚本将MongoDB数据导入Azure ML Studio - Import MongoDB data to Azure ML Studio from Python Script 如何修复 Python 中的 azure-cognitiveservices-speech 安装错误 - How to fix azure-cognitiveservices-speech install error in Python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM