May-30-2018, 01:24 PM
Hi,
I've come across an example code below and using PyCharm.
Is there a workaround?
Thanks for any help.
I've come across an example code below and using PyCharm.
import multiprocessing
def myProcess():
print("{} Just performed X".format(multiprocessing.current_process().name))
def main():
childProcess = multiprocessing.Process(target=myProcess, name='My-Awesome-Process')
childProcess.start()
childProcess.join()
if __name__ == '__main__':
main()When running the program I get the error below.Error: File "J:\Programs\Python\Python36\lib\multiprocessing\context.py", line 321, in _Popen
from .popen_spawn_win32 import Popen
ImportError: cannot import name 'Popen'The example code was run on Linux but I thought that I could still run the code on Windows.Is there a workaround?
Thanks for any help.
