I solved this issue in my case by passing the --project
flag to addprocs
. This will load the project files for the current directory.
Start Julia using julia --project
.
using Distributed
addprocs(2; exeflags="--project")
You can also pass the path to the desired environment using --project=/path/to/env
. As long as the path in addprocs
matches the one used to start Julia it should work fine.