Feb-25-2021, 10:20 AM
All you need to know is that there is program A (which is written in batch) and program B (regular python). Program A initiates program B to start minimized. Program A accomplishes this by first setting the cd directory to the folder where program B is placed. It then uses the "python" command to "convert" the cmd terminal to a python terminal to interpret all following code as python code. Right after the python command it starts program_A.py, which is followed by "cmd.exe" in the line below to not immediately close the promt in case of an error. The problem is that when this happens the only error i get is that of:
Traceback (most recent call last):
File "C:\Users\username\OneDrive\Desktop\scripts and code\program_A.py", line 4, in <module>
import keyboard
ModuleNotFoundError: No module named 'keyboard'
Microsoft Windows [Version 10.0.19041.804]
© 2020 Microsoft Corporation.
My guess is that because the "python" command only works because of the microsoft store version of python, and because "import keyboard" works in the actuall regular python terminal, i would say the culprit is the microsoft python version.
Any help would be deeply appreciated! Thank you!
Traceback (most recent call last):
File "C:\Users\username\OneDrive\Desktop\scripts and code\program_A.py", line 4, in <module>
import keyboard
ModuleNotFoundError: No module named 'keyboard'
Microsoft Windows [Version 10.0.19041.804]
© 2020 Microsoft Corporation.
My guess is that because the "python" command only works because of the microsoft store version of python, and because "import keyboard" works in the actuall regular python terminal, i would say the culprit is the microsoft python version.
Any help would be deeply appreciated! Thank you!