Answer the question
In order to leave comments, you need to log in
Python How to install the Queue library?
trying to run the code:
import Queue
q = Queue.Queue()
ModuleNotFoundError: No module named 'Queue'
>>> pip install Queue
Collecting Queue
Could not find a version that satisfies the requirement Queue (from versions: )
No matching distribution found for Queue
try:
import queue
except ImportError:
import Queue as queue
from multiprocessing import Queue
Answer the question
In order to leave comments, you need to log in
Install the module with pip , capitalize the module name.
pip install queue
Import the module like this:
from queue import Queue
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question