Skip to content
← Back to Community
How to add beautifulsoup package
Profile icon
anilreddy864

I am getting error when I install beautifulsoup package in python. there are only 2 versions it is considering. but both are not working

Voters
Profile icon
farjad0
Profile icon
jiyoungpark1
Profile icon
Reshmats
Profile icon
DanyMoroz
Profile icon
anilreddy864
Comments
hotnewtop
Profile icon
a5rocks

Make a requirements.txt file with beautifulsoup4 as the first line. Now at the top of your code write from bs4 import BeautifulSoup.

https://repl.it/site/docs/repls/packages#python

Profile icon
sangshan

@a5rocks Thanks!