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 *
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
With your import, you will import everything inside the
multiprocessingmodule. I assume that you are making a call that looks something likebut since you’ve imported everything inside
multiprocessing, it will not be in your namespace. I recommend that you doimport multiprocessingand use that as your point of entry to not clutter your namespace.