If you want to install in to Python2.7,navigate to Scripts folder(pip is placed here).
Test it's 3.5 for you.
Output:C:\Python27\Scripts>pip install beautifulsoup4
Then it use pip for Python2.7 and install to 2.7Quote:Requirement already up-to-date: bs4 in c:\python3.5\lib\site-packagesThen it should work in Python 3.5?
Test it's 3.5 for you.
C:\>python Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:15:05) [MSC v.1600 32 bit (Intel)] on win32 >>> from bs4 import BeautifulSoup >>> soup = BeautifulSoup('<p>Hello</p>', 'html.parser') >>> soup.find('p').text 'Hello'