Multithreading, Can't Run Process Command
Solution 1:
You are trying to import multiprocessing
from your local directory and not from the python library. The python interpreter first tries to import the module from the present directory. As you have got a file with the name multiprocessing.pyc
in your directory, the interpreter is trying to import that. Hence you have got the error. Thus deleting multiprocessing.pyc
will help resolve your problem.
Solution 2:
Solution 3:
The mistake was naming, my script as 'multiprocessing.py', once it was created. I made an another script with name 'a.py' and both of them were not working. After listing the directories, 'multiprocessing.pyc' was located. I deleted this file, and executed 'a.py' file which executed like gem! thanks to @Bhargav Rao for highlighting
Solution 4:
Don't give the name in the same directory as multiprocess.py, use different name instead.
Post a Comment for "Multithreading, Can't Run Process Command"