运行 python 代码时,我遇到以下错误:
sbassi-mbpro:FacebookEventScraper-master sbassi$ python facebook_event_scraper.py
Traceback (most recent call last):
File "facebook_event_scraper.py", line 13, in <module>
from openpyxl.styles import Style, Font
ImportError: cannot import name Style
python -V
Python 2.7.10
最佳答案
查看source code对于 openpyxl.styles,__init__.py文件未定义任何名称:Style
。
也许您正在寻找NamedStyle
?
关于python - 从 openpyxl.styles 导入样式,字体导入错误 : cannot import name Style,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39628005/