Python Opens Browser Tab to docs.python.org When Started

Whenever I launch Python (either from the Start Menu, terminal, or by double-clicking a .py file), my browser automatically opens a new tab with this page: 4. Using Python on Windows — Python 3.15.0a1 documentation

This happens every single time I start Python, even for simple scripts, and whenever I run .py files.

try to re register python file types via command line then try to open it, and if it does not solve the issue then reinstall the python.

1 Like

Look at the Windows shortcut that launches Python. Right click the shortcut and choose Properties. The shortcut may point to a .bat file which opens that site for you. In a batch file comment out lines by prefixing them with rem and a space. “rem” means remark. It’s a very old way of commenting for the BASIC language.

1 Like

I’ve checked but it points to AppData\Local\Programs\Python\Python312\python.exe, so there’s no .bat file