why is Airtable API and Python not workinng?;

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-06 04:42:27

问题


I am new to Python and APIs and I am trying to get some data from the API. More specifically I am trying to get some tables from a base. I am following this GitHub repository's instructions: https://github.com/bayesimpact/airtable-python

So far I have created a virtual environment called mypyth and in there I have initiated a script called get_data.py

This is what my script looks like (I have written API KEY instead of my real api key:

import requests
from airtable import airtable
at = airtable.Airtable('appa3r2UUo4JxpjSv', 'API KEY')
at.get('Campaigns')

Now these are the commands I run on the console:

(mypyth) PS C:\Users\andri\PythonProjects\mypyth> py do_get_account.py
Traceback (most recent call last):
  File "do_get_account.py", line 2, in <module>
    from airtable import airtable
ModuleNotFoundError: No module named 'airtable'
(mypyth) PS C:\Users\andri\PythonProjects\mypyth>

Does anyone understand why I get this error? Perhaps there is a step I havent followed? Thanks in advace for any answer

来源:https://stackoverflow.com/questions/55242843/why-is-airtable-api-and-python-not-workinng

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!