简体   繁体   中英

Cannot import xlwings on PyCharm

I'm new in Python world and have a problem to import xlwings on PyCharm.

I have installed Python 3.5 and anaconda as well. Anaconda shows me that xlwings installed successfully and have the same result on pip. In project interpreter PyCharm I can see xlwings 0.7.2 but I get error and cannot install it.

I made this: For example, you have a workbook named "Book1" in your current working directory. Then:

from xlwings import Range, Workbook
wb_name = "Book1"
Workbook.set_mock_caller(wb_name)
wb = Workbook.caller()
print(Range(1, 'A1').value)

You can made that. I had installed Anaconda and PyCharm and for my it's good.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM