错误代码门户
PythonPython错误代码

ImportError

ImportError

代码 ImportError · Python 报告的问题。

当 import 语句尝试加载模块时遇到问题时引发。当 from ... import 中的“from list”具有无法找到的名称时也会引发。 可选的名称和路径关键字参数设置相应的属性:

Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。

Raised when the import statement has troubles trying to load a module. Also raised when the “from list” in from ... import has a name that cannot be found. The optional name and path keyword-only arguments set the corresponding attributes:

故障排除与诊断链接

请先确认文档中的产品、版本及发生环境与当前情况一致。