- 在 native=True 模式下不能使用 run.io_bound() 执行 CPU 密集型任务 - 将 PowerShell 调用改为同步执行 subprocess.run() - 解决 'Unable to run CPU-bound in script mode' 错误
44 KiB
44 KiB
- 在 native=True 模式下不能使用 run.io_bound() 执行 CPU 密集型任务 - 将 PowerShell 调用改为同步执行 subprocess.run() - 解决 'Unable to run CPU-bound in script mode' 错误