2017-01-10 81 views
2

安裝我最近做了我的Windows筆記本電腦10的Python 3.6的全新安裝。 我想安裝BeautifullSoup。當我嘗試使用egg_info,錯誤代碼1失敗,PIP在Python 3.6

python -m pip install BeautifulSoup 

它返回下列信息:

C:\Users\mjpvanzuijlen\AppData\Local\Programs\Python\Python36>python -m 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\MJPVAN~1\AppData\Local\Temp\pip-build-kopzhsyx\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\MJPVAN~1\AppData\Local\Temp\pip-build-kopzhsyx\BeautifulSoup\ 

我發現別人用egg_info similair的問題,但解決方案並沒有爲我工作。我試圖升級點子,我下載setuptools32.3.2.1,我已經升級setupttools但都無濟於事。

回答

0

它看起來像你正試圖安裝了錯誤的包。

嘗試運行:python -m pip install BeautifulSoup4

代替:python -m pip install BeautifulSoup

相關問題