I installed the pyinput package through the package manager(file>settings>project>project interpreter) in PyCharm and it seems to be working fine from inside the IDE, but when I try to run the program from the CMD, I am getting the
"ModuleNotFoundError: No module named 'pynput'" error.
I tried adding it's parent folder in the path like that
parent_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), os.path.pardir)
sys.path.append((parent_dir+"/venv/Lib/site_packages").replace("\\", "/"))`
but it doesn't seem to work. What should I be doing in this case?