pip - 已经安装kafka-python ,ImportError: cannot import name KafkaConsumer
ringa_lee
ringa_lee 2017-04-18 10:08:17
0
1
1862

已经安装kafka-python (1.3.2.dev0)版本,但是ImportError: cannot import name KafkaConsumer

from kafka import KafkaConsumer
consumer = KafkaConsumer('test')
for msg in consumer:

print(msg)

http://kafka-python.readthedo...按照文档使用的为啥啊

ringa_lee
ringa_lee

ringa_lee

membalas semua(1)
伊谢尔伦

Anda perlu memasang daripada induk github - KafkaProducer belum dikeluarkan kepada pypi lagi.
https://github.com/dpkp/kafka...

Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan