Short selling code: ModuleNotFoundError: No module named 'bs4'

Hi, please help, thanks.

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-11-b61ae83ee4ec> in <module>
     13 
     14 # All functions library
---> 15 from data_modules.short_selling import relative
     16 from data_modules.short_selling import swings
     17 from data_modules.short_selling import regime_fc

~\Python\QuantraShortSellingResources\data_modules\short_selling.py in <module>
      3 import os
      4 import pathlib
----> 5 import bs4 as bs
      6 import pickle
      7 import requests

ModuleNotFoundError: No module named 'bs4'

 

The error is coming because the Beautiful Soup library is not installed in your system.



Try this:

!pip install beautifulsoup4

Thanks!

It worked, thank you!