# Unable to precompile Plots

**URL:** <https://discourse.julialang.org/t/unable-to-precompile-plots/92848>\
**Category:** General Usage\
**Created:** [January 12, 2023, 6:11am UTC](https://discourse.julialang.org/t/unable-to-precompile-plots/92848 "2023-01-12T06:11:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![HelloHelpp](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@HelloHelpp](https://discourse.julialang.org/u/HelloHelpp)\
**Post date:** [January 12, 2023, 6:11am UTC](https://discourse.julialang.org/t/unable-to-precompile-plots/92848/1 "2023-01-12T06:11:55Z")

</div>

Hi all,  
I am unable to precompile the package Plots due to the following error:

The following remedies have been attempted but so far none have been successful:  
-Uninstalling and reinstalling Julia  
-Adding and building GR  
-Building Plots  
-Trying an older version of Julia  
It would be great if someone could offer a solution to this issue.  
A screenshot of the error message is attached for reference.

 ![Plotsgg](https://global.discourse-cdn.com/julialang/original/3X/2/0/206e965a379d3d7527d7b28b01c0e3399674be9d.jpeg)

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Maucejo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maucejo/32/39090_2.png) [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Post date:** [January 12, 2023, 6:45am UTC](https://discourse.julialang.org/t/unable-to-precompile-plots/92848/2 "2023-01-12T06:45:34Z")

</div>

Hi, do you try to use Julia with admin priviledge ?

---

<div class="post-metadata">

**Author:** ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)\
**Post date:** [January 12, 2023, 7:44am UTC](https://discourse.julialang.org/t/unable-to-precompile-plots/92848/3 "2023-01-12T07:44:19Z")

</div>

What happens if you remove (or rename) the `C:\Users\HP\.julia` folder and try again?

---

<div class="post-metadata">

**Author:** ![HelloHelpp](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@HelloHelpp](https://discourse.julialang.org/u/HelloHelpp)\
**Post date:** [January 12, 2023, 8:59am UTC](https://discourse.julialang.org/t/unable-to-precompile-plots/92848/5 "2023-01-12T08:59:33Z")

</div>

Would selecting ‘Run as administrator’ when selecting Julia be sufficient? I did this just now but still got the same error.  
My PC is running on Windows 10 Home.

---

<div class="post-metadata">

**Author:** ![HelloHelpp](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@HelloHelpp](https://discourse.julialang.org/u/HelloHelpp)\
**Post date:** [January 12, 2023, 9:00am UTC](https://discourse.julialang.org/t/unable-to-precompile-plots/92848/6 "2023-01-12T09:00:42Z")

</div>

Thanks for the suggestion however this didn’t resolve the issue.

---

<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:** [January 12, 2023, 9:03am UTC](https://discourse.julialang.org/t/unable-to-precompile-plots/92848/7 "2023-01-12T09:03:18Z")

</div>

I just tried this and can’t replicate the error, installing Plots into a fresh environment under Julia 1.8.5 on Windows 10 worked just fine. Have you tried installing in a clean environment?

---

<div class="post-metadata">

**Author:** ![HelloHelpp](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@HelloHelpp](https://discourse.julialang.org/u/HelloHelpp)\
**Post date:** [January 12, 2023, 9:25am UTC](https://discourse.julialang.org/t/unable-to-precompile-plots/92848/8 "2023-01-12T09:25:29Z")

</div>

HI. I’m not sure how I could check if my environment is clean or not. Do I need to perform a clean install of the OS or do something similar?

---

<div class="post-metadata">

**Author:** ![skleinbo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skleinbo/32/36080_2.png) [@skleinbo](https://discourse.julialang.org/u/skleinbo)\
**Post date:** [January 12, 2023, 9:44am UTC](https://discourse.julialang.org/t/unable-to-precompile-plots/92848/9 "2023-01-12T09:44:55Z")

</div>

No, @nilshg was alluding to a fresh Julia project environment as described here [4. Working with Environments · Pkg.jl](https://pkgdocs.julialang.org/v1/environments/#Creating-your-own-projects)

1. Start Julia.
2. Chose an empty folder for your new project.
3. `] activate <projectfolder>`
4. `add Plots`

You will find a `Project.toml` and `Manifest.toml` in that folder afterwards.

See if the error persists.

---

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [January 12, 2023, 10:23am UTC](https://discourse.julialang.org/t/unable-to-precompile-plots/92848/10 "2023-01-12T10:23:58Z")

</div>

Try emptying your `compiled` cache (it is likely in an inconsistent state). For example, if you’re using julia 1.8, I think this should be `C:Users\HP\.julia\compiled\v1.8`. Hopefully some variant of that path will work for you.

After you empty it, you’ll have to re-precompile every package on your system.

---

<div class="post-metadata">

**Author:** ![Maucejo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maucejo/32/39090_2.png) [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Post date:** [January 12, 2023, 12:59pm UTC](https://discourse.julialang.org/t/unable-to-precompile-plots/92848/11 "2023-01-12T12:59:10Z")

</div>

I had similar issues with Plots. I have followed the followong steps:

1. Remove Plots
2. Clean my compiled folder ny removing GR and GR\_jll folders
3. Install Plots again

This solved the issue for me.

---

<div class="post-metadata">

**Author:** ![Maucejo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maucejo/32/39090_2.png) [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Post date:** [January 18, 2023, 6:46pm UTC](https://discourse.julialang.org/t/unable-to-precompile-plots/92848/12 "2023-01-18T18:46:32Z")

</div>

@HelloHelpp Is your problem solved?
