0
我想在我的Windows 8.1上安装BeautifulSoup到我的Python 3.4。我已经将PATH
设置为pip
文件夹。然后我运行此命令:使用pip时出现错误
pip install BeautifulSoup
,但我得到这个错误:
我该如何解决呢?
我想在我的Windows 8.1上安装BeautifulSoup到我的Python 3.4。我已经将PATH
设置为pip
文件夹。然后我运行此命令:使用pip时出现错误
pip install BeautifulSoup
,但我得到这个错误:
我该如何解决呢?
这是因为BeautifulSoup
程序包映射到BeautifulSoup
3rd version,它不再被维护,不支持Python3。从它的报价是PyPI
页:
This package is OBSOLETE. It has been replaced by the beautifulsoup4 package. You should use Beautiful Soup 4 for all new projects.
您需要安装beautifulsoup4
:
pip install beautifulsoup4
您所看到的错误,因为语法是蟒蛇2,其中印刷是相对于在python3函数的声明 –