I want to use multiprocessing to do the parallel computing. But I find if I use multiprocessing, the code should contains
if __name__ == '__main__':
or I'll get error
PicklingError: Can't pickle <type 'function'>: attribute lookup__builtin__.function failed
How can I do? Thank you.