0

I have searched the web for every solution I can think of for this problem. I have a python code that uses openpyxl to read from a excel spreadsheet. I want to give this code to a friend that does not have python installed, so I need to convert it to .exe and it seems PyInstaller is the best option. I downloaded PyInstaller and used it on a few test codes ("hello world" and whatnot) to make sure it worked and it seems to be installed properly. When I tried to compile the code I was working on, it seemed to work and made a .exe file, but when I ran the executable it gave the error "ImportError: cannot import name '__version_'". After tons of searching I found some information about using hooks, but when I tried to copy the hook it still didn't work. It seems the problem is the python version, the only information I could find was using Python 2.7 but I am using Python 3.5. Any help would be greatly appreciated, and if I need to add more information just say what needs to be added.

Austin D
  • 9
  • 6

0 Answers0