【发布时间】:2014-04-13 14:57:54
【问题描述】:
我正在尝试为 python33 安装 beautifulsoup,但它没有正确安装它会给出如下错误:
C:\Python33>pip install beautifulsoup
Downloading/unpacking beautifulsoup
Downloading BeautifulSoup-3.2.1.tar.gz
Running setup.py egg_info for package beautifulsoup
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "c:\windows\temp\pip_build_Prashant\beautifulsoup\setup.py", line 22
print "Unit tests have failed!"
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "c:\windows\temp\pip_build_Prashant\beautifulsoup\setup.py", line 22
print "Unit tests have failed!"
^
SyntaxError: invalid syntax
那么我可以为这个错误做些什么,有人可以建议我吗?
【问题讨论】:
-
你想要
beautifulsoup4; BS 3 已经很老了,不能在 Python 3 上运行。 -
这个作品和beautifulsoap一样吗?
-
@Prashant:这是该项目的最新版本。
-
感谢它现在的工作......
标签: python python-3.x beautifulsoup