# Importing default functions

**URL:** <https://discourse.julialang.org/t/importing-default-functions/16494>\
**Category:** General Usage\
**Created:** [October 18, 2018, 1:46pm UTC](https://discourse.julialang.org/t/importing-default-functions/16494 "2018-10-18T13:46:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VitalyRomanov](https://avatars.discourse-cdn.com/v4/letter/v/8e7dd6/32.png) [@VitalyRomanov](https://discourse.julialang.org/u/VitalyRomanov)\
**Post date:** [October 18, 2018, 1:46pm UTC](https://discourse.julialang.org/t/importing-default-functions/16494/1 "2018-10-18T13:46:47Z")

</div>

I have a fresh official installation of Julia 1.0.1 on OS X. Whenever I run Julia, no default functions are available

```julia
julia> Pkg

ERROR: UndefVarError: Pkg not defined

julia> import Pkg

julia> Pkg

Pkg

julia> mean

ERROR: UndefVarError: mean not defined

```

I used to have previous versions installed, and removed `~/.julia` folder since I suspected it could cause the problem. However, the problem persists. Does anyone know what can be the cause of this problem? Or where can I look for logs to figure out why default functions do not load automatically? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![nalimilan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nalimilan/32/147_2.png) [@nalimilan](https://discourse.julialang.org/u/nalimilan)\
**Post date:** [October 18, 2018, 1:48pm UTC](https://discourse.julialang.org/t/importing-default-functions/16494/2 "2018-10-18T13:48:06Z")

</div>

That’s just because some features have been moved to the standard library and are no longer available from Base by default. For `mean`, you need `using Statistics`. Use Julia 0.7 instead of 1.0 to get deprecation warnings indicating where functions have moved to.

---

<div class="post-metadata">

**Author:** ![VitalyRomanov](https://avatars.discourse-cdn.com/v4/letter/v/8e7dd6/32.png) [@VitalyRomanov](https://discourse.julialang.org/u/VitalyRomanov)\
**Post date:** [October 18, 2018, 3:44pm UTC](https://discourse.julialang.org/t/importing-default-functions/16494/3 "2018-10-18T15:44:51Z")

</div>

I didn’t realize this could be a problem. Thanks a lot!
