python练习copy excel出现bug,求指导
interpreter中已经安装了xlutils,为什么还有这样的报错呢
代码:
import xlutils
from xlrd import open_workbook
workbook=open_workbook(r’D:\test\xlwt_test.xls’)
sheet1=workbook.sheet_by_index(0)
cell12=sheet1.cell_value(0,1)
print(cell12)
报错:
C:\ProgramData\Anaconda3\python.exe “D:/test/read excel.py”
Traceback (most recent call last):
File “D:/test/read excel.py”, line 4, in
import xlutils
File “D:\test\xlutils.py”, line 2, in
from xlutils.copy import copy
ModuleNotFoundError: No module named ‘xlutils.copy’; ‘xlutils’ is not a package
Process finished with exit code 1