Search code examples
pythongoogle-chromeinternet-explorerbrowserpython-webbrowser

I have a program that opens websites, and I set my default browser to google chrome, but it still uses Internet Explorer


This is what I have so far. Do I need to change anything to make webbrowser package use Google Chrome?

import webbrowser
web = input('What website would you like to open? i.e. pbskids.org')
webbrowser.open(web)

Solution

  • Usually, this is just an issue with your default browser. If you navigate to your Windows settings page, you can change the default browser to another installed web browser, in your case, Google Chrome.