# Error when loading Distributions package for parallel computing

**URL:** <https://discourse.julialang.org/t/error-when-loading-distributions-package-for-parallel-computing/28437>\
**Category:** General Usage\
**Tags:** package, parallel\
**Created:** [September 5, 2019, 6:33pm UTC](https://discourse.julialang.org/t/error-when-loading-distributions-package-for-parallel-computing/28437 "2019-09-05T18:33:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergevic](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sergevic/32/9958_2.png) [@sergevic](https://discourse.julialang.org/u/sergevic)\
**Post date:** [September 5, 2019, 6:33pm UTC](https://discourse.julialang.org/t/error-when-loading-distributions-package-for-parallel-computing/28437/1 "2019-09-05T18:33:29Z")

</div>

I’m using parallel computing for some parts of my Julia code and for that, I need to load 2 packages: `LinearAlgebra` and `Distributions`. Concerning `LinearAlgebra` I run the following code and it works:

```julia
using Distributed
using LinearAlgebra
using Distributions
addprocs(1)
@everywhere using LinearAlgebra

```

But when I try `@everywhere using Distributions` I have the following error:

```julia
On worker 2:
ArgumentError: Package Distributions not found in current path:
- Run `import Pkg; Pkg.add("Distributions")` to install the Distributions package.
require at .\loading.jl:823
eval at .\boot.jl:328
#116 at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Distributed\src\process_messages.jl:276
run_work_thunk at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Distributed\src\process_messages.jl:56
run_work_thunk at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Distributed\src\process_messages.jl:65
#102 at .\task.jl:259
#remotecall_wait#154(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Function, ::Distributed.Worker, ::Module, ::Vararg{Any,N} where N) at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Distributed\src\remotecall.jl:421
remotecall_wait(::Function, ::Distributed.Worker, ::Module, ::Vararg{Any,N} where N) at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Distributed\src\remotecall.jl:412
#remotecall_wait#157(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Function, ::Int64, ::Module, ::Vararg{Any,N} where N) at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Distributed\src\remotecall.jl:433
remotecall_wait(::Function, ::Int64, ::Module, ::Vararg{Any,N} where N) at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Distributed\src\remotecall.jl:433
(::getfield(Distributed, Symbol("##161#163")){Module,Expr})() at .\task.jl:259
sync_end(::Array{Any,1}) at task.jl:226
macro expansion at task.jl:245 [inlined]
remotecall_eval(::Module, ::Array{Int64,1}, ::Expr) at macros.jl:199
top-level scope at macros.jl:183

```

I have the same error with `LightGraphs` package: `@everywhere using LightGraphs` doesn’t work.  
What am I doing wrong? I’m using JuliaPro v. 1.1 with Julia 1.1.

---

<div class="post-metadata">

**Author:** ![greg\_plowman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg_plowman/32/8100_2.png) [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Post date:** [September 5, 2019, 9:20pm UTC](https://discourse.julialang.org/t/error-when-loading-distributions-package-for-parallel-computing/28437/2 "2019-09-05T21:20:29Z")

</div>

This might be related to running JuliaPro alongside standard Julia.

See [Problems parallelizing declaring used packages - #11 by greg\_plowman](https://discourse.julialang.org/t/problems-parallelizing-declaring-used-packages/27728/11)

See [Load modules in several workers - #19 by greg\_plowman](https://discourse.julialang.org/t/load-modules-in-several-workers/17521/19)

---

<div class="post-metadata">

**Author:** ![sergevic](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sergevic/32/9958_2.png) [@sergevic](https://discourse.julialang.org/u/sergevic)\
**Post date:** [September 6, 2019, 12:00am UTC](https://discourse.julialang.org/t/error-when-loading-distributions-package-for-parallel-computing/28437/3 "2019-09-06T00:00:25Z")

</div>

Thank you 🙂 I know that most of the times the same questions are asked more than once… I try to find similar questions on Google but I’m not able to find them. You guys here are always able to point directly to similar questions 🙂 Will try your suggestions and see if I can solve the problem 🙂

---

<div class="post-metadata">

**Author:** ![sergevic](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sergevic/32/9958_2.png) [@sergevic](https://discourse.julialang.org/u/sergevic)\
**Post date:** [September 6, 2019, 3:03am UTC](https://discourse.julialang.org/t/error-when-loading-distributions-package-for-parallel-computing/28437/4 "2019-09-06T03:03:22Z")

</div>

Your suggestions worked! Thank you!
