简体   繁体   中英

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'

its really strange why it can't find azure inside azure?

However the same python script works fine when I run it through Jupyter Notebook

The Execute Python Script contains pre-installed packages mentioned in this list .

So in your case the cognitive services is not included - hence the error.

You can install the package by including the below code

import os
os.system(f"pip install <Packagename>")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM