我正在使用名为 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/