os.system('/usr/bin/firefox') # A Windows version would be (again use the path of a browser you have installed) os.system(r'c:\"Program Files"\"Mozilla Firefox"\firefox.exe')