# Unable to use "plots"

**URL:** <https://discourse.julialang.org/t/unable-to-use-plots/76680>\
**Category:** New to Julia\
**Tags:** question, package, plotting\
**Created:** [February 18, 2022, 8:25am UTC](https://discourse.julialang.org/t/unable-to-use-plots/76680 "2022-02-18T08:25:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![iAnkiit](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@iAnkiit](https://discourse.julialang.org/u/iAnkiit)\
**Post date:** [February 18, 2022, 8:25am UTC](https://discourse.julialang.org/t/unable-to-use-plots/76680/1 "2022-02-18T08:25:39Z")

</div>

I am getting this error. Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80].

Tried following ways but nothing improved.  
Pkg.gc()  
Pkg.rm(“Plots”)  
Pkg.gc()  
Pkg.add(“Plots”)

Someone please help me with this. I am unable to proceed.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [February 18, 2022, 8:42am UTC](https://discourse.julialang.org/t/unable-to-use-plots/76680/2 "2022-02-18T08:42:14Z")

</div>

Can you post the full error?

---

<div class="post-metadata">

**Author:** ![iAnkiit](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@iAnkiit](https://discourse.julialang.org/u/iAnkiit)\
**Post date:** [February 18, 2022, 9:13am UTC](https://discourse.julialang.org/t/unable-to-use-plots/76680/3 "2022-02-18T09:13:57Z")

</div>

Sure.  
Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\ankit.kothawade.julia\compiled\v1.7\Plots\jl\_1902.tmp.

 ![Screenshot (7)](https://global.discourse-cdn.com/julialang/original/3X/7/9/79f2eeb606c81783e91d1affa1bb7e2c53422c32.png)

---

<div class="post-metadata">

**Author:** ![mike](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mike/32/39_2.png) [@mike](https://discourse.julialang.org/u/mike)\
**Post date:** [February 18, 2022, 9:25am UTC](https://discourse.julialang.org/t/unable-to-use-plots/76680/4 "2022-02-18T09:25:09Z")

</div>

Looks the same as [https://github.com/jheinen/GR.jl/issues/449](https://github.com/jheinen/GR.jl/issues/449). The underlying cause appears to be the assumption that [https://github.com/jheinen/GR.jl/blob/90afd2a898881d527a526583468c3fd88678156a/src/GR.jl#L36](https://github.com/jheinen/GR.jl/blob/90afd2a898881d527a526583468c3fd88678156a/src/GR.jl#L36) makes that `deps.jl` always exists, which might not be the case.

---

<div class="post-metadata">

**Author:** ![iAnkiit](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@iAnkiit](https://discourse.julialang.org/u/iAnkiit)\
**Post date:** [February 18, 2022, 9:52am UTC](https://discourse.julialang.org/t/unable-to-use-plots/76680/5 "2022-02-18T09:52:42Z")

</div>

I visited these links, but I didn’t understand , what is to be done.  
Could you please guide me with syntax, what steps to be perform?

Thanks.

---

<div class="post-metadata">

**Author:** ![sai\_matcha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sai_matcha/32/35801_2.png) [@sai\_matcha](https://discourse.julialang.org/u/sai_matcha)\
**Post date:** [February 18, 2022, 9:55am UTC](https://discourse.julialang.org/t/unable-to-use-plots/76680/6 "2022-02-18T09:55:33Z")

</div>

can you try ,  
Pkg.build(“Plots”)  
then  
using Plots

it worked for me, initially.!

---

<div class="post-metadata">

**Author:** ![iAnkiit](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@iAnkiit](https://discourse.julialang.org/u/iAnkiit)\
**Post date:** [February 19, 2022, 7:42am UTC](https://discourse.julialang.org/t/unable-to-use-plots/76680/7 "2022-02-19T07:42:16Z")

</div>

Huge Thanks. It worked.Can’t express in words.  
I was stuck here for more than two days.  
Thanks a lot.
