What's the difference between "pip install bs4" and "pip install BeautifulSoup4"?

Question:

When I search about the installation of the BeautifulSoup lib, sometimes I see pip install bs4, and sometimes pip install BeautifulSoup4.

What’s the difference between these 2 methods of installation?

Asked By: Cluyverth

||

Answers:

bs4 is technically a different package; however, it is a dummy package designed to install the correct package: beautifulsoup4.

https://pypi.org/project/bs4/

TLDR: You can use either the short name or long name

Answered By: kiwi
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.