I have both Python 2.7 and Python 3.5 installed. When I type pip install beautifulsoup4 it tells me that it is already installed in python2.7/site-package directory.
pip install beautifulsoup4
But how do I install it into the python3 dir?
What you can do is use this command in your terminal:
pip3 install beautifulsoup4
Check this blog for more reference.
To know more about this you can have a look at the following video:-