I know this has been talked about before but I cant seem to find the correct way to make it work.
I have a python script that imports the selenium module (opens a website, sleep for 3 sec and closes it). When I run it with Pycharm everything runs great but when I try to run it from CMD (the ultimate goal is to run it in Jenkins but that is not relevant right now) it gives an error that it cannot find the 'selenium' module.
ModuleNotFoundError: No module named 'selenium'
I read that I have to run the command
python -m
but I dont really know where to point it to. I tried to take the interpreter directory from Pycharm and run
python -m C:\Users\XXX\PycharmProjects\untitled\venv\Scripts | script.py
but it still gave the same issue.
Can someone please point me in the right direction about this command syntax?