I am using Ubuntu 14.04 64 bit Operating System .
I installed Beautiful Soup 4 using this command :
sudo apt-get install python-bs4
With Python 2.7.6 , I had no difficulty importing the
But when I used Python 3.4.0 it showed me this error.
>>>import bs4 Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named 'bs4'
I also tried to install it using pip.
sudo pip install beautifulsoup4
But again it didn't worked with Python 3.4.0.
Right now I have uninstalled pip and also uninstalled Beautiful Soup 4
sudo apt-get remove python-bs4 sudo apt-get remove python-pip
What should I do next to properly install Beautiful Soup 4 for both Python 2.7.6 and Python 3.4.0 ??