![]() |
problem running python file using cmd - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: problem running python file using cmd (/thread-23257.html) |
problem running python file using cmd - panzers - Dec-18-2019 Hi everyone, I have a game.py that i would like to run in cmd (works perfectly fine in pycharm). however when i run it it says ModuleNotFoundError. No module named 'pygame' the lib i want to import is pygame. directory C:\Users\Panzers\Desktop\Python Projects\Python Game\ thanks for your help RE: problem running python file using cmd - Larz60+ - Dec-18-2019 please show how you are trying to do this step by step. RE: problem running python file using cmd - panzers - Dec-19-2019 erm.. which part u dont understand? when i run: C:\Users\Panzers\Desktop\Python Projects\Python Game\game.py the error ModuleNotfoundError - no module named 'pygame' shows up. But it works perfectly in pycharm. my guess is the cmd is unable to process the library thus unable to load the python file. But i am not sure how to solve it. |