Evernote API 和 Python 库兼容性问题

问题描述 投票:0回答:1

我一直在尝试将 Evernote API 与 Python 结合使用,但我面临着与 Python“evernote”库的一些兼容性问题。我尝试了不同的解决方法,但无法找到允许我毫无问题地使用 API 的解决方案。

具体来说,我遇到了以下问题:

“evernote”库似乎与 Python 3.7 及更高版本不兼容。我遇到了与使用“inspect”模块和“exec”函数相关的错误。

我尝试使用“evernote3”包,它在 PyPI 上被列为单独的包,但我无法将其作为模块导入到我的 Python 代码中。

我还尝试按照各个论坛的建议安装“evernote-sdk-python3”,但我发现这个包在 PyPI 上不可用。

因此,我目前无法使用 Python 与 Evernote API 进行交互。是否有我可以使用的库的更新版本或我可能忽略的任何其他解决方法?

evernote
1个回答
0
投票

使用evernote3:https://github.com/evernote/evernote-sdk-python3

安装完成后

from evernote.api.client import EvernoteClient
# Set your Evernote developer token here
dev_token = config['EVERNOTE_DEVTOKEN']

# Create an Evernote client
client = EvernoteClient(token=dev_token, sandbox=False)

会起作用

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.