openpyxl module does not have attribute '__version__' when imported by pandas
问题 My traceback from running pandas takes me to: site-packages\pandas\io\excel.py line 58, in get_writer AttributeError: 'module' object has no attribute '__version__' I found this link to a git issue in the PyInstaller repo https://github.com/pyinstaller/pyinstaller/issues/1890 and found my openpyxl version, manually added it into the get_writer method like so: def get_writer(engine_name): if engine_name == 'openpyxl': try: import openpyxl #remove when conda update available openpyxl.__version_