使用Python打开Excel工作簿时出错

时间:2016-01-29 16:29:32

标签: python xlrd

我无法从我的iMac打开.xlsx文档,因为我的macbook pro上没有问题。我忘记了安装吗?

这是我的代码:

import xlrd
from xlrd import open_workbook,cellname

book = open_workbook("/Users/mathias/Dropbox/Python/users.xlsx")  

错误:

...
File "/Library/Python/2.7/site-packages/xlrd/__init__.py", line 394, in open_workbook
    f = open(filename, "rb")
IOError: [Errno 2] No such file or directory: '/Users/mathias/Dropbox/Python/users.xlsx'

0 个答案:

没有答案