I am working with Jupyter Notebook and have python 2.7 and 3.4 installed on it. I installed BeautifulSoup before importing it by this line:
pip install beautifulsoup4
The problem is that it is installed on python 2.7 while beautifulsoup4 is working on python 3.4. I also tried pip3 install beautifulsoup4
to install it on python 3 but the problem is still there and when i do this line: from bs4 import BeautifulSoup
i again get the error below:
Error:
ImportError: cannot import name _htmlparser
Does anyone know how i can solve this problem since it appears beautifulsoup4 should be installed on python 3 while mine get installed in python 2??