#πŸ”’ Python packaging issues

18 messages Β· Page 1 of 1 (latest)

flat ice
#

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

slim atlasBOT
#

@flat ice

Python help channel opened

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.

near merlin
#

where did you run pyinstaller?

uncut frost
#

You can’t have both Pygame and Pygame-ce

#

Remove Pygame

flat ice
#

i removed pygame and still does not work

near merlin
flat ice
#

oh...

#

how do i do that

#

really new to pycharm

near merlin
#

should be on the left bottom corner

flat ice
#

ok thanks

#

same error

#

from the pycharm terminal as well

slim atlasBOT
#
Python help channel closed for inactivity

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.