hey guys i have a question: i have this app i made and from pycharm runs, from cmd with python command runs however when i double click on it it opens for a split second and that is it. when i try to "exe" it it just says File "main.py", line 1, in <module> ModuleNotFoundError: No module named 'pygame', I have pygame installed in pycharm. i have Python 3.13.5, pip 25.1.1, pygame 2.6.1
i ran it from vs code too and it works
#π Python packaging issues
18 messages Β· Page 1 of 1 (latest)
@flat ice
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
where did you run pyinstaller?
in cmd using py -m PyInstaller myfile.py --onefile --windowed
i removed pygame and still does not work
you need to run it in the pycharm terminal
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.