2017-03-02 178 views
0

我想下載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,最新版本。由於

+0

參見[這裏](http://stackoverflow.com/questions/30140034/beautifulsoup-invalid-syntax-in-python-3-4-after-2to3- PY)。 –

+0

你必須安裝beautifulsoup4 for python 3 – abccd

回答

1

這應有助於:

pip install beautifulsoup4 
+0

哦,謝謝。有人告訴我這只是美麗的 – Vareq

相關問題