Using Queue in python

前端 未结 5 1675
无人及你
无人及你 2021-02-06 23:31

I\'m trying to run the following in Eclipse (using PyDev) and I keep getting error :

q = queue.Queue(maxsize=0) NameError: global name \'queue\' is not defined<

5条回答
  •  后悔当初
    2021-02-07 00:18

    You Can install kombu with pip install kombu

    and then Import queue Just like this

    from kombu import Queue

提交回复
热议问题