Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)

Whenever I am trying to install the webbrowser module, I am getting this error:

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

1 Answer

0 votes
by (108k points)

Please be informed that the webbrowser module is already a part of the python official library, as it comes bundled with your python foundation.

From the official documentation, you can use the package from the command prompt as follows:

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

Or from your own scripts:

import webbrowser

webbrowser.open('https://www.python.org')

If you are a beginner and want to know more about Python, then do check out the below Python tutorial video that will help you in understanding the topic in a better way:

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Nov 27, 2020 in Python by bharathbk (280 points)
0 votes
1 answer
0 votes
3 answers

Browse Categories

...