I understand that the question is not quite here, but I think the local audience will prompt a solution.

On a Windows 10 computer, Python 3.5 is installed. All files in directories with the .py extension have a white icon, and not a Phyton icon.

I tried to reinstall - in the settings of the daw, the associations of the .py files stood. Reinstallation did not help. How can I fix this?
Just causes inconvenience.

Thank.

  • In the registry of programs by default Python, IDLE are absent. - VladislavMSK
  • Python version 3.7 is the same problem. And I installed it in one class - everything was without problems, I installed it in another - when I start the program I get an error. As far as I understand, .py files are not associated with python. What to do? Or is it also "Open with ..."? - Gabarityanin

2 answers 2

Right-click on one of the .py files -> Properties -> In the line "open with help", click on Change -> Click the Browse button if Python is not in the program list -> Find the folder with Python and select python.exe -> OK -> OK. Everything! :)

  • A small note: Python is in the list of programs, but when python.exe is manually selected, the problem is solved, but if you choose from the list of programs you choose, it is not. - VladislavMSK
  • Note: If you do this, the "Edit with IDLE" button disappears from the mouse menu. - VladislavMSK

This looks like a bug in the installer for Python 3.5: Windows Installer assigns non-existent icons to Python file types - py.exe contains only one icon.

Explicit selection of python.exe , as suggested by @Michael Vaysman , can help if only one version of Python is on the machine (otherwise shebang ( #!python2 , #!python3.3 ) will be ignored).

The release of Python 3.5.1 should fix this and other installation problems.