charsi charsi - 1 month ago 216
Python Question

ImportError: cannot import name get_column_letter

I am able to use openpyxl as an import in my code. but when I try to do the following:

from openpyxl.cell import get_column_letter


I get the following error:

ImportError: cannot import name get_column_letter


I am using python 2.7
I have installed it using easy_install.
Tried searching for this issue but couldn't find anything related to it over the internet. any help would be highly appreciated.

Thanks!

Answer

get_column_letter is in openpyxl.utils so you need to say from openpyxl.utils import get_column_letter

Comments