pyspider报错:TypeError: initialize() got an unexpected keyword argument ‘io_loop

1. 安装pyspider

pip install pyspider

2. pyspider启动:TypeError: initialize() got an unexpected keyword argument ‘io_loop

错误描述:
1、pyspider是 0.39版本
2、 安装后运行 出现错误 TypeError: initialize() got an unexpected keyword argument ‘io_loop’

原因:python环境中,默认tornado版本是最新的5.0,在4.0之后就废弃了io_loop参数。

解决方法:

1、pip uninstall tornado

2、pip install tornado==4.1

已解决。

你可能感兴趣的:(pyspider报错:TypeError: initialize() got an unexpected keyword argument ‘io_loop)