pythonbeautifulsoup

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


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?


Solution

  • 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