You probably did import multiprocessing
. Which is fine, because in your code, you actually did:
multiprocessing.Queue()
But, when doing Process()
, you forgot to put multiprocessing.
before it.
However, you can also fix this by importing the classes directly:
from multiprocessing import Queue, Process
But then you would have to change multiprocessing.Queue()
to just Queue()