Import xlwings module in python 3.4

I try to use the new excel xlwings integration module It works like a charm under Anaconda 2.0 for python 2.7 but I get this error under Anaconda 2.0 for python 3.4 the xlwings file contains the Workbook class, so I don’t understand why it cannot import it when I just use xlwings file in my project for 3.4, it works just fine

File "C: \ Users \ xxxxx \ AppData \ Local \ Continuum \ Anaconda3 \ lib \ site-packages \ xlwings__init __. Py", line 1, from xlwings import Workbook, Range, Chart, version

ImportError: Unable to import workbook name

+4
source share
1 answer

AT "C:\Users\xxxxx\AppData\Local\Continuum\Anaconda3\lib\site-packages\xlwings__init__.py"

from xlwings import Workbook, Range, Chart, __version__

to from xlwings.xlwings import Workbook, Range, Chart, __version__

+3

Source: https://habr.com/ru/post/1543865/


All Articles