安装Beautiful Soup包失败。错误信息为"SyntaxError: Missing parentheses in call to 'print'"。

14 浏览
0 Comments

安装Beautiful Soup包失败。错误信息为"SyntaxError: Missing parentheses in call to 'print'"。

我在我的Windows 8电脑上安装了Python 3.5。我还安装了Pycharm社区版5.0.4。我无法通过Pycharm的设置选项安装BeautifulSoup模块。我在Pycharm中遇到了以下错误:

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 "", line 1, in 
    File "C:\Users\Kashyap\AppData\Local\Temp\pycharm-packaging0.tmp\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\Kashyap\AppData\Local\Temp\pycharm-packaging0.tmp\BeautifulSoup

Python安装文件夹的路径是3.5.1(C:\Program Files (x86)\Python35-32\python.exe)

0