I'm running this code
import bs4 as bs
import urllib.request
sauce = urllib.request.urlopen('http://pythonprogramming.net/parsememcparseface')
soup = bs.BeautifulSoup(sauce, 'lxml')
print(soup)
and I'm getting this error
ModuleNotFoundError: No Module named 'bs4'
I've installed beautiful soup using
sudo pip install beautifulsoup4
and there were no errors.
I thought it might have installed bs4 to my python 2.7 library, but I can't find it there. I also can't find my python 3 library anywhere. Any ideas what I should do to get python 3 to recognize beautifulsoup?