python - Airtable API 和 Python 的问题

标签 python module importerror attributeerror airtable

我正在使用名为 AirTable 的在线电子表格应用程序,并且需要能够使用 Python 访问 API。

Github 上概述了 API 的 Python 接口(interface): https://github.com/bayesimpact/airtable-python

我已按照入门说明进行操作,当我运行代码时,出现以下错误: AttributeError:模块“airtable”没有属性“Airtable”

我做错了什么?

最佳答案

临时修复:

from airtable import airtable

永久修复:

1 找到你的airtable安装路径

2找到ini文件

3 删除#

4 指定导入后需要使用的类

from airtable import airtable

class Airtable(object):
    pass

您可能需要添加更多类(class)。

关于python - Airtable API 和 Python 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40199695/

相关文章:

python - 为 Google 云端硬盘中上传的私有(private)文件生成可下载链接

file - Typescript 每个类一个文件

css - 坚持模块化样式

java - 导入com.example无法解析

sas - 您可以在 SAS proc 导入文件名中包含宏吗?

python - 将标志作为参数传递给 re.compile

python - 为什么 Python 2 认为这些字节是麦克风表情符号而 Python 3 却不这样认为?

python - 为什么从 python 调用 *.py 文件时 Python 导入会成功,但仅通过文件名调用时却失败

python - 使用来自列表列表的键/值创建字典

python - 阻止 Python 代码导入某些模块?