0

I am running Python 3.5.1 and PyInstaller 3.2 on Windows.

I need to compile my script into an exe. I have done this with pyintaller before with different scripts and have had no issues. Pyinstaller is having trouble importing xlrd. I have tried:

--hidden-import=xlrd 

and also

 --hidden-import xlrd and neither has worked. 

I have heard about hooks but I cannot find any documentation on how to set up the hook-xlrd.py file.

I have been getting the error:

ImportError: No Module called xlwt

The script runs perfectly from the Command Prompt.

1 Answers1

0

Somehow, your application requires xlwt. So do a pip install xlwt and then add --hidden-import=xlwt to your arguments.
For a more comprehensive guide, see here.

Mikety2520
  • 61
  • 1
  • 4