Python 尝试导入BeautifulSoup时出现异常

Python 尝试导入BeautifulSoup时出现异常,python,beautifulsoup,Python,Beautifulsoup,我正在尝试将Beautiful Soup4-4.1.0导入Python 3.3(我已将Beautiful Soup放入:C:\Python33\Lib\site packages\BeautifulSoup\bs4) 使用以下命令: from BeautifulSoup import bs4 我收到以下错误: Traceback (most recent call last): File "<pyshell#5>", line 1, in <module>

我正在尝试将Beautiful Soup4-4.1.0导入Python 3.3(我已将Beautiful Soup放入:
C:\Python33\Lib\site packages\BeautifulSoup\bs4

使用以下命令:

from BeautifulSoup import bs4
我收到以下错误:

Traceback (most recent call last):
  File "<pyshell#5>", line 1, in <module>
    from BeautifulSoup import bs4
  File "C:\Python33\lib\site-packages\BeautifulSoup\bs4\__init__.py", line 175
    except Exception, e:
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
从美联进口bs4
文件“C:\Python33\lib\site packages\BeautifulSoup\bs4\\uuuuu init\uuuuuu.py”,第175行
除例外情况外,e:

有人能帮上忙吗?

我建议你阅读《美丽之路》,因为我引用了:

BeautifulSoup4适用于Python2(2.6+)和Python3

$ easy_install beautifulsoup4

$ pip install beautifulsoup4
在任何情况下,BeautifulSoup 4都是通过PyPi发布的,因此,如果无法使用system packager安装它,可以使用easy_install或pip安装。包名为beautifulsoup4,相同的包适用于Python 2和Python 3

$ easy_install beautifulsoup4

$ pip install beautifulsoup4
如果没有安装easy_install或pip,可以下载源tarball并使用setup.py安装。[转到该文件夹并运行命令setup.py install(假设路径扩展中已知*.py,否则运行

c:\pythonXX\python setup.py install).