"Python caldav" 属性 E

2024-06-13 12:38:20 发布

您现在位置:Python中文网/ 问答频道 /正文

我刚刚在Windows上使用pip安装了caldav0.5.0。我试图使用文档中的代码:

from datetime import datetime
import caldav
from caldav.elements import dav, cdav

# Caldav url
url = "https://user:pass@hostname/caldav.php/"

client = caldav.DAVClient(url)

但我有个错误:

AttributeError: module 'caldav' has no attribute 'DAVClient'

有人知道是什么导致这个问题吗?你知道吗


Tags: pip代码from文档httpsimporturldatetime