我正在学习逻辑回归概念的概念。当我在python中实现它时,它显示了我下面提到的一些错误。我是python的初学者。有人能帮助纠正这个错误吗?Python RuntimeError:无法导入pydot
RuntimeError回溯(最近通话最后一个) 在()
64 theano.printing.pydotprint(predict,
65 outfile="pics/logreg_pydotprint_predic.png",
66 var_with_name_simple=True)
67 # before compilation
68 theano.printing.pydotprint_variables(prediction,
C:\蟒蛇\ LIB \站点包\ theano \ printing.pyc在pydotprint(FCT,OUTFILE,结构紧凑,格式, with_ids,high_contrast,cond_highlight,colorCodes,max_label_size,scan_graphs,var_with_name_simple,print_output_file,assert_nb_all_strings)
565
566 if not pydot_imported:
567 raise RuntimeError("Failed to import pydot. You must install pydot"
568 " for `pydotprint` to work.")
569 return
RuntimeError:无法导入pydot。您必须安装pydot for pydotprint
才能工作。
你有没有尝试安装pydot? –