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.
But how do I install it into the python3 dir?
I think pip3 will satisfy your needs, use the below command on the terminal:
pip3 install beautifulsoup4
See doc