这是一个创建于 3680 天前的主题,其中的信息可能已经有所发展或是发生改变。
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 "d:\tmp\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 "d:\tmp\BeautifulSoup\setup.py", line 22
print "Unit tests have failed!"
^
SyntaxError: invalid syntax
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in d:\tmp\BeautifulSoup
3 条回复 • 2014-06-08 14:03:14 +08:00
|
|
1
cbsw 2014-06-08 13:00:35 +08:00
你确定这个库已经支持 python3 了吗? Unit test 明显是 py2 的语法 print "something",而不是 print("something")
|
|
|
3
Crossin 2014-06-08 14:03:14 +08:00
装bs4
|