SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(“Unit tests have failed!”)?
在安装beautifulsoup模块时出现这个提示,是因为beautifulsoup库现在不维护了,只能在python2.x中使用,在python3.x中要使用beautifulsoup4.
首先检查pip版本 File—>setting——>project mooc——>project intepreter
如果pip版本较低,则先更新pip。更新pip ,输入 python -m pip install --upgrade pip
, 显示更新成功了,再输入 pip install BeautifulSoup4
就等更新成功啦]