当出现这种情况时,是因为你所使用的python为3以上版本,而BeautifulSoup不支持高版本的Python,所以解决办法是:

将pip install BeautifulSoup 改为

    pip install BeautifulSoup4

便可安装成功