I have installed BeautifulSoup both using pip install beautifulsoup4
pip install and using conda install -c anaconda beautifulsoup4
and also tried to install it directly from the jupiter notebook using
import pip
if int(pip.__version__.split('.')[0])>9:
from pip._internal import main
else:
from pip import main
def install(package):
main(['install', package])
install('BeautifulSoup4')
When I try to import the module I get
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-8-9e5201d5ada7> in <module>
----> 1 import BeautifulSoup4
ModuleNotFoundError: No module named 'BeautifulSoup4'`
I want to premise that I'm a noob at this, I always have problems understanding where I should install new python modules, and for some reason they always get installed everywhere but where I need them. I searched here and on google but I could not find a answer that worked or that could set me on the right track to solve the problem.
Could some PRO explain step by step how to install the modules correctly, so that myself and the other people who might read this can, not only fix the problem, but also understand better how the problem was originated and how to fix similar problems in the future? Thanks