python 安裝impala包步驟
直接pip install impala 是不行滴,按照以下步驟安裝就會(huì)成功!
一路安裝就可以
1、pip install six
2、pip install bit_array
3、pip install thriftpy
4、pip install thrift_sasl
5、pip install impyla
測試:
>>> from impala.dbapi import connect>>>
不報(bào)錯(cuò)則表示安裝成功!
補(bǔ)充知識(shí):python3 安裝impala相關(guān)的包
安裝相關(guān)的包順序
pip3 install six bit_array bitarraypip3 install thriftpy==0.3.8 pure-saslpip3 install thrift-sasl==0.2.1 --no-depspip3 install impyla==0.14.1
然后修改thrift_sasl__init__.py文件
一般這個(gè)文件在/usr/local/lib/python3.6/site-packages/里面
修改第94行的這個(gè)函數(shù)
def _send_message(self, status, body): header = struct.pack('>BI',status, len(body)) if (type(body) is str): # add body = body.encode() # add self._trans.write(header + body) self._trans.flush()
以上這篇python 安裝impala包步驟就是小編分享給大家的全部內(nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持好吧啦網(wǎng)。
相關(guān)文章:
1. PHP驗(yàn)證碼工具-Securimage2. Vue 實(shí)現(xiàn)對quill-editor組件中的工具欄添加title3. JavaScript實(shí)現(xiàn)簡單的彈窗效果4. 我所理解的JavaScript中的this指向5. javascript實(shí)現(xiàn)貪吃蛇小練習(xí)6. PHP利用curl發(fā)送HTTP請求的實(shí)例代碼7. Java commons-httpclient如果實(shí)現(xiàn)get及post請求8. PHP單件模式和命令鏈模式的基礎(chǔ)知識(shí)9. 一文帶你徹底理解Java序列化和反序列化10. js實(shí)現(xiàn)碰撞檢測

網(wǎng)公網(wǎng)安備