【问题标题】:Trouble importing BeautifulSoup in python在 python 中导入 BeautifulSoup 时遇到问题
【发布时间】:2010-10-01 14:37:40
【问题描述】:

我已经将 BeautifulSoup 解压到 c:\python2.6\lib\site-packages 中,它位于 sys.path 中,但是当我输入 import BeautifulSoup 时,我收到一个导入错误,提示不存在这样的模块。显然我在做一些愚蠢的事情......这是什么?

【问题讨论】:

  • 没有实际的错误,我们只能猜测。

标签: python module importerror


【解决方案1】:

您可能安装了多个 python 版本?检查您正在运行的版本。

另外,我发现使用 easy_install 可以很好地安装 BeautifulSoup。

【讨论】:

  • 我必须重新启动 IDLE 才能获取更改
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-04-23
  • 1970-01-01
  • 1970-01-01
  • 2015-10-23
  • 2011-01-17
  • 1970-01-01
相关资源
最近更新 更多