Python Forum

Full Version: Can't open files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone,

I keep running into this issue and after some research I still don't know what to do. I have used different IDE's and editors, but I always end up not being able to open up my .py files.
I double click and the files just won't open. There is no little widow telling me what's wrong, it just doesn't happen.

I had this problem several times now. Do you guys have any idea what's going on?

Greetings Lass.
You didn't tell us what OS you are using, but it sounds like the .py extension is not mapping to either an IDE or a Python runtime. Normally you would map it to the runtime, and open it in the IDE by opening the IDE first.
(Oct-24-2020, 05:49 PM)jefsummers Wrote: [ -> ]You didn't tell us what OS you are using, but it sounds like the .py extension is not mapping to either an IDE or a Python runtime. Normally you would map it to the runtime, and open it in the IDE by opening the IDE first.

I'm on Windows, assuming that that's what you mean.
I tried opening the file through IDE (Wing 101) and I set the PATH to this. I worked on it for a little while, but when I tried to reopen it, it won't open.
Not familiar with Wing. If you right click on the file and choose Open With, what options does it show?
(Oct-25-2020, 06:26 PM)jefsummers Wrote: [ -> ]Not familiar with Wing. If you right click on the file and choose Open With, what options does it show?

It showed me a few programs that don't actually work. Wing isn't on there. When I try looking for other apps and I find Wing, I click it, it still won't open.
First, would make sure your Windows Path includes the path to your Python installation. Then, open the control panel and associate the .py extension with your Python installation.