I am trying to convert my threaded code to multiprocessing code. but it is giving me error
Name Error: global name 'multiprocessing' is not defined
Multiprocessing is installed and I imported it by
from multiprocessing import *
With your import, you will import everything inside the multiprocessing module. I assume that you are making a call that looks something like
multiprocessing.some_function()
but since you've imported everything inside multiprocessing, it will not be in your namespace. I recommend that you do import multiprocessing and use that as your point of entry to not clutter your namespace.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With