attributeerror python_Python 命令执行失败,出现 AttributeError Azure Databricks - Workspace | Microsoft Docs...

Python 命令执行失败,出现错误 AttributeErrorPython command execution fails with AttributeError

03/23/2020

本文内容

本文可帮助你解决 Python 命令执行失败的情况 AttributeError 。This article can help you resolve scenarios in which Python command execution fails with an AttributeError.

解决'tuple' object has no attribute 'type'Problem: 'tuple' object has no attribute 'type'

运行笔记本时,Python 命令执行会失败,并出现以下错误和堆栈跟踪:When you run a notebook, Python command execution fails with the following error and stack trace:

AttributeError: 'tuple' object has no attribute 'type'

Traceback (most recent call last):

File "/local_disk0/tmp/1547561952809-0/PythonShell.py", line 23, in

import matplotlib as mpl

File "/databricks/python/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 122, in

from matplotlib.cbook

你可能感兴趣的:(attributeerror,python)