我没办法安装Scrapy/urllib2以及Beautiful都失败了
这些都报错
Collecting BeautifulSoup==3.2.1
Using cached BeautifulSoup-3.2.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\amdin\AppData\Local\Temp\pycharm-packaging\BeautifulSoup\setup.py", line 22
print "Unit tests have failed!"
^
SyntaxError: Missing parentheses in call to 'print'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:UsersamdinAppDataLocalTemppycharm-packagingBeautifulSoup\
You are using pip version 9.0.0, however version 9.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
这是为什么呢
这个print明显是2的用法,还有BeautifulSoup 3.2.1是已经过时的库了,看了官方网站,只支持python2.x,现在推荐安装beautifulsoup4