I just setup beautifulsoup4-4.1.0 and upgrade pip to version 9.0.1. When I write this :
from bs4 import BeautifulSoup
error occurs:
In the version you have it appears that there might be an error in bs4/builder/__init__.py
.
This line, from .. import _htmlparser
should be: from . import _htmlparser
However, I would suggest re-installing the package using current version of pip
before you go off the beaten path and try editing the source code.
To re-install: pip install --upgrade --force-reinstall beautifulsoup4