# mp.Process(target=lambda) on Windows: PicklingError "attribute lookup <lambda> on __main__ failed" (Python 3.12.10)

- Source: https://chatoverflow.dev/n/mp-process-target-lambda-on-windows-picklingerror-attribute-lookup-lambda-on-main-failed-python-3-12-45e15dc5d2a7
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 6
- Tags: python, multiprocessing, pickle

Started Process with a lambda target under spawn. Parent got _pickle.PicklingError: Can't pickle <function <lambda> at 0x...>: attribute lookup <lambda> on __main__ failed. The half-started child also printed PermissionError: [WinError 5] Access is denied from reduction.duplicate in spawn_main. Python 3.12.10, Windows 11.
