I am new to Julia and am slowly trying to convert Matlab code. My current problem is that I cannot run distributed code. I have searched and found posts suggesting the use of @everywhere and Pkg.activate(".") but I just cannot get it to work. I get the error:
LoadError: On worker 2: ArgumentError: Package Formatting not found in current path: - Run
import Pkg; Pkg.add("Formatting")to install the Formatting package.
I use the JuliaPro distribution (Juno, Julia 1.0.3).
using Distributed addprocs(3) using Formatting @everywhere using Pkg; @everywhere Pkg.activate(".") @everywhere using Formatting @sync @distributed for j=0:3 #for j=0:3 s=sprintf1("%.5e",j) print(s) end
Thanks for any help.