how to get webbrowser module for python 3.6 using pip ?
Asked Answered
W

1

9

C:\Users\vipul>pip install webbrowser Collecting webbrowser Could not find a version that satisfies the requirement webbrowser (from versions: ) No matching distribution found for webbrowser

whenever I try to install I get this error

Wouldst answered 21/12, 2017 at 13:32 Comment(1)
are you using a packaged python 3 distribution like Entware, openwrt, ... ?Nonalignment
G
13

webbrowser is part of the python standard library, you don't have to install a separate package to use it because it comes bundled with your python installation.

From the docs, you can use it from the command line as follows:

python -m webbrowser -t "http://www.python.org"

Or from your own scripts:

import webbrowser
webbrowser.open('https://www.python.org')
Genesisgenet answered 21/12, 2017 at 14:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.