本文介绍了Python脚本错误 - 错误0085的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我收到了Python脚本错误 - 在ML中执行以下基本代码时出现错误0085,作为文档中指定的作业的一部分 -   http://aka.ms/edx-dat203.1x-lab1


我需要你的帮助


错误0085:脚本评估期间发生以下错误,请查看输出日志以获取更多信息:
$
---------- Python解释器启动错误消息----------

执行函数时发生异常:Traceback(最近一次调用最后一次):

 文件"C:\\\ t \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\   mod = import_module(moduleName)

 文件"C:\pyhome \lib \ importlib \ ___ ___。py",第126行,在import_module中为
    return _bootstrap._gcd_import(name [level:],package,level)

 文件"< frozen importlib._bootstrap>",第986行,在_gcd_import中
 文件"< frozen importlib._bootstrap>",第969行,in _find_and_load

 文件"< frozen importlib._bootstrap>",第958行,在_find_and_load_unlocked中为
 文件"< frozen importlib._bootstrap>",第673行,_load_unlocked为
 文件"< frozen importlib._bootstrap_external>",第658行,在exec_module中为
 文件"< frozen importlib._bootstrap_external>",第764行,在get_code中为
 文件"< frozen importlib._bootstrap_external>",第724行,在source_to_code中为
 文件"< frozen importlib._bootstrap>",第222行,in _call_with_frames_removed

 档案"C:\ temp \ 46e051d0e9c44f23bf59051e211d18ea.py",第16行

  &NBSP; drop_cols = ['SexAndStatus',

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; ^

IndentationError:预期缩进块

返回非零退出代码的处理1



- --------来自Python的错误消息结束 解释器&NBSP; ----------

开始时间:UTC 03/24/2019 04:06:30

结束时间:UTC 03/24/2019 04 :06:37
解决方案


Hi There,

I am getting Python Script Error - Error 0085 while executing following basic code in ML as a part of assignment specified in document -  http://aka.ms/edx-dat203.1x-lab1

I need your kind help here

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 189, in batch
    mod = import_module(moduleName)
  File "C:\pyhome\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 658, in exec_module
  File "<frozen importlib._bootstrap_external>", line 764, in get_code
  File "<frozen importlib._bootstrap_external>", line 724, in source_to_code
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "C:\temp\46e051d0e9c44f23bf59051e211d18ea.py", line 16
    drop_cols = ['SexAndStatus',
            ^
IndentationError: expected an indented block
Process returned with non-zero exit code 1

---------- End of error message from Python  interpreter  ----------
Start time: UTC 03/24/2019 04:06:30
End time: UTC 03/24/2019 04:06:37
解决方案


这篇关于Python脚本错误 - 错误0085的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 19:52