当我尝试pip安装BeautifulSoup时,为什么会出现此错误?

时间:2017-03-02 01:58:43

标签: python beautifulsoup

我想根据个人需要下载BeautifulSoup但是当我尝试安装它时,它给了我这个:

C:\>pip install beautifulsoup
Collecting beautifulsoup
  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\ANONYM~1\AppData\Local\Temp\pip-build-a46azl8h\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:\Users\ANONYM~1\AppData\Local\Temp\pip-build-a46azl8h\beautifulsoup\

任何人都可以帮我安装吗? (是的,beautifulsoup在我的C :) 我目前正在使用最新版本的Python 3.6.0。感谢

1 个答案:

答案 0 :(得分:1)

这应该有所帮助:

pip install beautifulsoup4
相关问题