本文介绍了使用python将CSV转换为数据框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在执行python脚本(python 3.5)时遇到以下错误.似乎未找到模块azureml.有谁遇到同样的错误

I am getting the following error while executing a python script (python 3.5). Looks like module azureml is not found. Is anyone getting the same error


<实验参数params =" viewModel:$ data" style ="box-sizing:border-box;">
<experiment-parameter params="viewModel: $data" style="box-sizing:border-box;">

ERROR _________________________________

ERROR_________________________________

更多信息的输出日志:\ r \ n ----------来自Python解释器的错误消息的开始---------- \ r \ n执行函数时捕获到异常:追溯(最近一次呼叫最近):\ r \ n批量执行\\"C:\\ server \\ invokepy.py \"文件,第199行\ r \ n odfs = mod.azureml_main(* idfs)\ r \ n文件\"C:\\ temp \\ dd875b4187a74faaa57ca2d8c8813c2a.py \",第28行,在azureml_main \ r \ n中,来自azureml导入工作区\ r \ nImportError:否名为'azureml'的模块\ r \ n返回非零退出代码1 \ r \ n \ r \ n的过程---------- 来自Python解释器的错误消息的结尾----------"}}错误:错误0085:在脚本评估期间发生了以下错误,请查看输出日志以获取更多信息:------- ---从Python解释器开始的错误消息----------抓到了 执行函数时出现异常:追溯(最近一次调用最近):批处理文件"C:\ server \ invokepy.py",第199行odfs = mod.azureml_main(* idfs)文件"C:\ temp \ dd875b4187a74faaa57ca2d8c8813c2a". py",第28行,来自azureml的azureml_main import WorkspaceImportError:没有名为'azureml'的模块返回非零退出代码1的过程----------来自Python解释器的错误消息结束----------退出了错误代码的过程-2

the output log for more information:\r\n---------- Start of error message from Python interpreter ----------\r\nCaught exception while executing function: Traceback (most recent call last):\r\n File \"C:\\server\\invokepy.py\", line 199, in batch\r\n odfs = mod.azureml_main(*idfs)\r\n File \"C:\\temp\\dd875b4187a74faaa57ca2d8c8813c2a.py\", line 28, in azureml_main\r\n from azureml import Workspace\r\nImportError: No module named 'azureml'\r\nProcess returned with non-zero exit code 1\r\n\r\n---------- End of error message from Python interpreter ----------"}}Error: Error 0085: The following error occurred during script evaluation, please view the output log for more information:---------- Start of error message from Python interpreter ----------Caught exception while executing function: Traceback (most recent call last): File "C:\server\invokepy.py", line 199, in batch odfs = mod.azureml_main(*idfs) File "C:\temp\dd875b4187a74faaa57ca2d8c8813c2a.py", line 28, in azureml_main from azureml import WorkspaceImportError: No module named 'azureml'Process returned with non-zero exit code 1---------- End of error message from Python interpreter ---------- Process exited with error code -2

推荐答案

Azureml SDK(用于Azure ML Studio的Microsoft Azure机器学习Python客户端库)实际上默认情况下不包含在Azure ML Studio框架中.您必须以这种方式安装它:

the SDK azureml (Microsoft Azure Machine Learning Python client library for Azure ML Studio) actually is not included by default in the Azure ML Studio framework. You have to install it in this way:

  • 下载SDK 并将其安装在本地pyhton环境中(如果未安装的话)
  • 搜索在计算机中创建的文件夹并将其压缩(只是名为azureml的文件夹)
  • 将压缩文件作为数据集上传到AML Studio工作区
  • >
  • 将数据集拖放到实验中,并将其连接到执行Python脚本"模块的第3个输入节点
  • download the SDK and install it in your local pyhton environment (if you didn't do it yet)
  • search the folder created in your computer and zip it (just the folder named azureml)
  • upload the zipped file as a dataset to your AML Studio workspace
  • drag the dataset into your experiment, and connect it to the 3rd input node of the Execute Python Script module

现在它应该可以工作了;)

Now it should work ;)


这篇关于使用python将CSV转换为数据框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 04:14
查看更多