No module named 'pandas'

37 views
Skip to first unread message

Sety Lambrecht

unread,
Dec 4, 2019, 6:22:49 AM12/4/19
to PyInstaller
Hello,

I cannot run my executable file because the following error pops up:

ModuleNotFoundError: No module named 'pandas'

[21761] Failed to execute script


When running Pyinstaller --debug=imports, I find the following:

# pandas not found in PYZ

Traceback (most recent call last):

  File "UI.py", line 4, in <module>

  File "<frozen importlib._bootstrap>", line 991, in _find_and_load

  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked

ModuleNotFoundError: No module named 'pandas'


I have already tried adding 'pandas' to hidden-import in the pip command, as well as creating a hook-pandas.py. 


I am running Python 3.8 and Pyinstaller 4.0.dev0+9dd34bdfba on macOS Catalina.


Can anybody please help me resolve this issue? 

 

Reply all
Reply to author
Forward
0 new messages