Description
Pyinstaller won't import my pynput module
Platform and pynput version
pynput's version is already backed to 1.6.8, I tried to import it with hidden-import yet no success.
This is what debug=all shows me :
Traceback (most recent call last):
File "WindowsDefender.py", line 1, in
File "", line 1007, in _find_and_load
File "", line 972, in _find_and_load_unlocked
File "", line 228, in _call_with_frames_removed
File "", line 1007, in _find_and_load
File "", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pynput'
The command I used is : pyinstaller --onefile --noconsole --debug=all --hidden-import="pynput.keyboard._win32" --clean WindowsDefender.py
And I only have imported pynput.keyboard, not the whole module.
Description Pyinstaller won't import my pynput module
Platform and pynput version pynput's version is already backed to 1.6.8, I tried to import it with hidden-import yet no success.
This is what debug=all shows me : Traceback (most recent call last): File "WindowsDefender.py", line 1, in
File "", line 1007, in _find_and_load
File "", line 972, in _find_and_load_unlocked
File "", line 228, in _call_with_frames_removed
File "", line 1007, in _find_and_load
File "", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pynput'
The command I used is : pyinstaller --onefile --noconsole --debug=all --hidden-import="pynput.keyboard._win32" --clean WindowsDefender.py
And I only have imported pynput.keyboard, not the whole module.