【发布时间】:2018-12-09 14:35:26
【问题描述】:
我无法安装 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 gives "Command "python setup.py egg_info" failed with error code 1"
pip install --upgrade setuptools pip install ez_setup 然后重试模块安装。
但是,它仍然无法正常工作。我以管理员身份使用 cmd。
操作系统:Windows 8.1 Pro Python:3.6.0
【问题讨论】:
-
试试
pip install beautifulsoup4,按照官网说明:crummy.com/software/BeautifulSoup
标签: python windows-8.1 python-3.6