python出错记录

pycharm中升级pip出错,‘NoneType’ object has no attribute ‘bytes’

使用easy_install -U pip安装

而不是python -m pip install --upgrade pip

Do you need to install a parser library?

soup = BeautifulSoup(r.text, 'lxml')更改为:

soup = BeautifulSoup(r.text, 'html.parser')