#πŸ”’ why cant i open python files

24 messages Β· Page 1 of 1 (latest)

violet spokeBOT
#

@restive iron

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.

restive iron
#

why cant i open this file without it closing for no reason?

scarlet estuary
scarlet estuary
#

Not at my computer right now so I have to make due with stock images, number 4 in this image.

restive iron
#

same on windows 11?

scarlet estuary
#

Yes

restive iron
#

so put cmd there

scarlet estuary
#

Yes

restive iron
#

am i dumb

scarlet estuary
#

Delete the downloads, it should just be cmd

restive iron
scarlet estuary
#

Now type py "file name.py" and press enter. You need quotes since the file name has spaces.

restive iron
#

what that mean

scarlet estuary
#

You typed py file_name.py inside the file at some point, you need to delete that. It’s probably at the very end.

restive iron
scarlet estuary
#

Run pip install pywin32 to install win32api, then try again.

restive iron
#

Run it in the command prompt?

scarlet estuary
#

Yep

restive iron
#

Kk I'm gonna have to try it a bit later thanks for the help

scarlet estuary
#

πŸ‘

violet spokeBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.