Beautifulsoup is a python library that can be used to scrape information from web pages using requests module.Bs4 basically beautify the html text we received as response from an http request.
pip install beautifulsoup4
I would recommend installing this library using pip instead of easy_install as easy_install will install library system wide.
Further, in order to remove conflict, try creating a virtual environment and then install required library and run your code.
If code is still not working and again same error is coming, then check if pip3 is installed in your system.
pip3 install beautifulsoup4
Install bs4 on mac
python3 -m pip install bs4
If you are using Anaconda then install using the following command
conda install -c anacond beautifulsoup4
If BeautifulSoup is already installed but still not working, then try using this command.
pip install --upgrade bs4
Install beautifulsoup for Pycharm
Go to File -> Settings -> Python Interpreter, click on plus sign and find beautifulsoup4.
Click install.