Python 中的 Dropbox 对象没有 Dropbox 属性
dropbox object does not have Dropbox attribute in Python
我现在正在使用 Python 从 Dropbox 下载文件,我正在关注 this tutorial。但是前两行代码没有成功:
import dropbox
dbx = dropbox.Dropbox('YOUR_ACCESS_TOKEN')
我的 Python 抱怨 AttributeError: 'module' object has no attribute 'Dropbox'
有什么想法吗?
经过仔细检查,我发现原因是因为我使用的是dropbox-v2的功能,而我的机器上安装了dropbox-v1。
我现在正在使用 Python 从 Dropbox 下载文件,我正在关注 this tutorial。但是前两行代码没有成功:
import dropbox
dbx = dropbox.Dropbox('YOUR_ACCESS_TOKEN')
我的 Python 抱怨 AttributeError: 'module' object has no attribute 'Dropbox'
有什么想法吗?
经过仔细检查,我发现原因是因为我使用的是dropbox-v2的功能,而我的机器上安装了dropbox-v1。