pycharm安装第三方库失败

我没办法安装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.

这是为什么呢

阅读 6.8k
1 个回答

这个print明显是2的用法,还有BeautifulSoup 3.2.1是已经过时的库了,看了官方网站,只支持python2.x,现在推荐安装beautifulsoup4

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进