【问题标题】:Athenahealth Sandbox - No module named 'athenahealthapi'Athenahealth 沙盒 - 没有名为“athenahealthapi”的模块
【发布时间】:2021-07-08 13:15:54
【问题描述】:

我正在尝试使用 athenahealth 上的沙盒 - https://docs.athenahealth.com/api/guides/explore-and-prototype - 注册并创建应用程序后,我开始使用沙盒 - 尝试沙盒。我滚动到示例代码,转到 GH >> samplecode >> python3 >> testing.py。拉这个并运行这个代码时,我不断收到错误

ModuleNotFoundError: 没有名为“athenahealthapi”的模块

我无法安装 athenahealthapi

【问题讨论】:

  • 您很可能需要在 API 网站上找到他们的athenahealthapi,下载并安装到本地。我想他们是唯一托管下载的地方。

标签: python-3.x installation pip


【解决方案1】:

如果您正在查看 API 代码示例,您应该会看到一个具有称为 APIConnection 的类连接的示例。我相信您需要将该代码保存为一个名为 athenahealthapi.py 的文件,该文件与您运行脚本的文件夹相同。这本质上是 athenahealthapi 模块,它将 APIConnection 类拉为 athenahealthapi.APIConnection()。我已经通过了那部分,但现在遇到了缺少 access_token 密钥错误的问题。 :(

【讨论】:

    猜你喜欢
    • 2012-08-31
    • 1970-01-01
    • 1970-01-01
    • 2013-07-21
    • 1970-01-01
    • 2019-03-28
    • 2017-12-30
    • 2016-06-29
    • 2018-01-06
    相关资源
    最近更新 更多