I try to run this code:
import numpy as np
import multiprocessing
from functools import partial
CPUS = multiprocessing.cpu_count() # Anzahl der CPUs/Threads: 4
anzahl = CPUS-1
WORKERS = multiprocessing.Pool(processes=anzahl)
I tried to run it on 3 different computers: on 2 all works fine, but on 1 computer I get the following traceback error:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "L:\Python\lib\multiprocessing\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "L:\Python\lib\multiprocessing\spawn.py", line 125, in _main
prepare(preparation_data)
File "L:\Python\lib\multiprocessing\spawn.py", line 236, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "L:\Python\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path
main_content = runpy.run_path(main_path,
File "L:\Python\lib\runpy.py", line 264, in run_path
code, fname = _get_code_from_file(run_name, path_name)
File "L:\Python\lib\runpy.py", line 234, in _get_code_from_file
with io.open_code(decoded_path) as f:
OSError: [Errno 22] Invalid argument: 'L:\\Python\\<input>'
I don't know how to solve this problem.
Can someone help me?
My Python version: Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)] on win32