No module named 'thrift'
时间: 2023-08-27 09:17:21 浏览: 288
thrift安装遇到的问题以及解决方法(必看篇)
回答: 您遇到了"No module named 'thrift'"的错误。这个错误通常是因为你的Python环境中没有安装thrift模块导致的。你可以检查一下你的Python环境中是否存在thrift模块。可以在/opt/python/Python-2.7.3/lib/python2.7/site-packages目录下查看是否存在thrift-0.9.0-py2.7-linux-i686.egg这个文件,如果不存在的话,你需要先安装thrift模块。同时,还有可能是由于安装的第三方模块包的版本不对所导致的,你可以参考相关解决方案进行调整。希望这些信息可以帮助到你解决问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [pyhive ModuleNotFoundError: No module named ‘thrift](https://blog.csdn.net/uncle_ll/article/details/112260948)[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: 33.333333333333336%"]
- *2* [ImportError: No module named thrift](https://blog.csdn.net/qinglu000/article/details/43307189)[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: 33.333333333333336%"]
- *3* [pycharm报错ModuleNotFoundError: No module named ‘thrift](https://blog.csdn.net/opencv_fyl/article/details/129321953)[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: 33.333333333333336%"]
[ .reference_list ]
阅读全文