$ git clone https://github.com/binux/pyspider $ cd pyspider $ vim pyspider/__init__.py __version__ = '0.3.11' $ pip install .
或者将当前版本的代码修改一下,替换掉 async
1 2 3
$ vim /Users/wxnacy/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyspider/run.py $ vim /Users/wxnacy/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyspider/fetcher/tornado_fetcher.py $ vim /Users/wxnacy/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyspider/webui/app.py