我无法安装 beautifulsoup 模块
错误:
C:\WINDOWS\system32>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\surabhis\AppData\Local\Temp\pip-build-tdxcdfig\beautifulsou
p\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\username
\AppData\Local\Temp\pip-build-tdxcdfig\beautifulsoup\
我按照 Python pip install 中指定的解决方法给出了“命令“python setup.py egg_info”失败,错误代码为 1”
pip install --upgrade setuptools pip install ez_setup 然后重试模块安装。
但是,它仍然无法正常工作。我使用 cmd 作为管理员。
操作系统:Windows 8.1 Pro Python:3.6.0