# Distributions package not recognized after installation on JuliaPro

**URL:** <https://discourse.julialang.org/t/distributions-package-not-recognized-after-installation-on-juliapro/3483>\
**Category:** New to Julia\
**Created:** [May 2, 2017, 7:21pm UTC](https://discourse.julialang.org/t/distributions-package-not-recognized-after-installation-on-juliapro/3483 "2017-05-02T19:21:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![fjhickernell](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fjhickernell/32/3464_2.png) [@fjhickernell](https://discourse.julialang.org/u/fjhickernell)\
**Post date:** [May 2, 2017, 7:21pm UTC](https://discourse.julialang.org/t/distributions-package-not-recognized-after-installation-on-juliapro/3483/1 "2017-05-02T19:21:51Z")

</div>

After installing the Distributions.jl package in JuliaPro, the commands do not seem to be recognized.  
 ![](https://global.discourse-cdn.com/julialang/original/3X/0/8/08fd502427825e27f8197410a3ddf16bac4e2819.png) ![](https://global.discourse-cdn.com/julialang/original/3X/9/f/9fdccf5ede112214ae78d80507d306692cd1dd39.png)

---

<div class="post-metadata">

**Author:** ![anon94023334](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Post date:** [May 2, 2017, 7:25pm UTC](https://discourse.julialang.org/t/distributions-package-not-recognized-after-installation-on-juliapro/3483/2 "2017-05-02T19:25:32Z")

</div>

Silly question, but did you import it via `using Distributions` before you tried `Normal()`?

---

<div class="post-metadata">

**Author:** ![fjhickernell](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fjhickernell/32/3464_2.png) [@fjhickernell](https://discourse.julialang.org/u/fjhickernell)\
**Post date:** [May 2, 2017, 7:54pm UTC](https://discourse.julialang.org/t/distributions-package-not-recognized-after-installation-on-juliapro/3483/3 "2017-05-02T19:54:52Z")

</div>

I used Pkj.add(“Distributions”). Did I do it wrong?

---

<div class="post-metadata">

**Author:** ![anon94023334](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Post date:** [May 2, 2017, 8:09pm UTC](https://discourse.julialang.org/t/distributions-package-not-recognized-after-installation-on-juliapro/3483/4 "2017-05-02T20:09:43Z")

</div>

That’s necessary but not sufficient. `Pkg.add()` just downloads the code to your system so that it’s available. To use it within a script or the REPL, you need to import the functions via `using`. See [https://docs.julialang.org/en/stable/manual/modules/](https://docs.julialang.org/en/stable/manual/modules/) for more details:

> The statement `using Lib` means that a module called `Lib` will be available for resolving names as needed. When a global variable is encountered that has no definition in the current module, the system will search for it among variables exported by `Lib` and import it if it is found there. This means that all uses of that global within the current module will resolve to the definition of that variable in `Lib`.

---

<div class="post-metadata">

**Author:** ![DIzer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dizer/32/3971_2.png) [@DIzer](https://discourse.julialang.org/u/DIzer)\
**Post date:** [May 2, 2017, 8:10pm UTC](https://discourse.julialang.org/t/distributions-package-not-recognized-after-installation-on-juliapro/3483/5 "2017-05-02T20:10:25Z")

</div>

Did you use the “using Distributions” clause before calling Normal() or not?

---

<div class="post-metadata">

**Author:** ![fjhickernell](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fjhickernell/32/3464_2.png) [@fjhickernell](https://discourse.julialang.org/u/fjhickernell)\
**Post date:** [May 2, 2017, 8:20pm UTC](https://discourse.julialang.org/t/distributions-package-not-recognized-after-installation-on-juliapro/3483/6 "2017-05-02T20:20:30Z")

</div>

Thank you for pointing out the error of my ways. I am an experienced MATLAB programmer trying to see what Julia can offer. Appreciate your help.

---

<div class="post-metadata">

**Author:** ![anon94023334](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Post date:** [May 2, 2017, 8:49pm UTC](https://discourse.julialang.org/t/distributions-package-not-recognized-after-installation-on-juliapro/3483/7 "2017-05-02T20:49:34Z")

</div>

No worries. The languages are similar but there are definitely some gotchas.

---

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [May 6, 2017, 5:31am UTC](https://discourse.julialang.org/t/distributions-package-not-recognized-after-installation-on-juliapro/3483/8 "2017-05-06T05:31:04Z")

</div>

Just a note to add:

`Pkg.add("pkg")` needs to be issued only once in a Julia installation, while `using pkg` is required on each script/REPL usage whenever you want the functionality of the package exposed…

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [May 6, 2017, 5:37am UTC](https://discourse.julialang.org/t/distributions-package-not-recognized-after-installation-on-juliapro/3483/9 "2017-05-06T05:37:07Z")

</div>

> [@anon94023334](#):
>
> No worries. The languages are similar but there are definitely some gotchas.

Well to be fair, MATLAB is probably the only language where every package in the directory is automatically imported instead of having to manually import the packages you want to use. I am pretty sure that we all agree that MATLAB’s style there causes major namespacing issues in any sufficiently large package system.
