# 0.7 deprecated warning does not go away

**URL:** <https://discourse.julialang.org/t/0-7-deprecated-warning-does-not-go-away/13063>\
**Category:** General Usage\
**Created:** [August 9, 2018, 5:29am UTC](https://discourse.julialang.org/t/0-7-deprecated-warning-does-not-go-away/13063 "2018-08-09T05:29:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeoK987](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leok987/32/4880_2.png) [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Post date:** [August 9, 2018, 5:29am UTC](https://discourse.julialang.org/t/0-7-deprecated-warning-does-not-go-away/13063/1 "2018-08-09T05:29:06Z")

</div>

julia\> mean(A)  
WARNING: Base.mean is deprecated: it has been moved to the standard library package `Statistics`.  
Add `using Statistics` to your imports.  
in module Main  
5.5

julia\> using Statistics

julia\> mean(A)  
WARNING: Base.mean is deprecated: it has been moved to the standard library package `Statistics`.  
Add `using Statistics` to your imports.  
in module Main  
5.5

julia\> import Statistics

julia\> mean(A)  
WARNING: Base.mean is deprecated: it has been moved to the standard library package `Statistics`.  
Add `using Statistics` to your imports.  
in module Main  
5.5

julia\> import Statistics.mean

julia\> mean(A)  
WARNING: Base.mean is deprecated: it has been moved to the standard library package `Statistics`.  
Add `using Statistics` to your imports.  
in module Main  
5.5

---

<div class="post-metadata">

**Author:** ![bicycle1885](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bicycle1885/32/107_2.png) [@bicycle1885](https://discourse.julialang.org/u/bicycle1885)\
**Post date:** [August 9, 2018, 5:36am UTC](https://discourse.julialang.org/t/0-7-deprecated-warning-does-not-go-away/13063/2 "2018-08-09T05:36:06Z")

</div>

I think you need to restart your Julia session to cancel the deprecated warnings.

---

<div class="post-metadata">

**Author:** ![LeoK987](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leok987/32/4880_2.png) [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Post date:** [August 9, 2018, 5:42am UTC](https://discourse.julialang.org/t/0-7-deprecated-warning-does-not-go-away/13063/3 "2018-08-09T05:42:27Z")

</div>

new session, but that warning is still there.

---

<div class="post-metadata">

**Author:** ![bicycle1885](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bicycle1885/32/107_2.png) [@bicycle1885](https://discourse.julialang.org/u/bicycle1885)\
**Post date:** [August 9, 2018, 5:46am UTC](https://discourse.julialang.org/t/0-7-deprecated-warning-does-not-go-away/13063/4 "2018-08-09T05:46:57Z")

</div>

Once deprecated warnings are invoked, they stick to the session even after calling `using Statistics`. So, you need to call `using Statistics` before invoking deprecated warnings.

If it still happens, can you paste all the commands from the start-up of Julia along with `versioninfo()`?

---

<div class="post-metadata">

**Author:** ![LeoK987](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leok987/32/4880_2.png) [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Post date:** [August 9, 2018, 6:03am UTC](https://discourse.julialang.org/t/0-7-deprecated-warning-does-not-go-away/13063/5 "2018-08-09T06:03:50Z")

</div>

Oh, thanks.

So from the new session, call using Statistics first before any call to mean(A), then no such warning.
