Dropbox AttributeError:“module”对象没有属性“Dropbox”

2024-04-24 10:38:49 发布

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

我是python新手。我想试试dropbox最简单的例子。在

import dropbox
dbx = dropbox.Dropbox('access_token')
dbx.users_get_current_account()

但它给了我以下错误:

^{pr2}$

在我看来,python没有找到我的dropbox库。我已经用“sudo pip install dropbox”正确安装了dropbox(至少我认为是这样)。我怎样才能解决这个问题?在


Tags: importtokengetaccess错误sudoaccountcurrent