AttributeError: object has no attribute 'initialize'
时间: 2023-09-03 19:09:12 浏览: 258
根据引用中的源代码,我们可以看到在导入tornado库时会检查是否存在IOLoop的configurable_default属性,如果不存在则会引发ImportError。根据引用中提供的报错信息,可以看到错误是由于在zmq.eventloop.ioloop模块中的IOLoop类没有initialize属性引起的。因此,解决方法是安装anaconda中的pyzmq库,可以使用conda install -c anaconda pyzmq命令进行安装,如引用所示。这样应该可以解决AttributeError: 'object' has no attribute 'initialize'的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [彻底解决:AttributeError:type object IOLoop has no attribute initialized](https://blog.csdn.net/Joyyang_c/article/details/108486172)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Jupyter启动报错:AttributeError: type object ‘IOLoop‘ has no attribute ‘initialized](https://blog.csdn.net/qq_44864833/article/details/125236629)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文