为什么安装好xlwings,IDLE运行
import xlwings as xl app = xw.App(visible = True, add_book = False) workbook = app.books.add()
后却显示
C:\Users\ylc\AppData\Local\Programs\Python\Python39\python.exe D:/新建文件夹/2.py
Traceback (most recent call last):
File "D:\新建文件夹\2.py", line 1, in <module>
import xlwings as xl
ModuleNotFoundError: No module named 'xlwings'
确定xlwings是安装成功的