Unable to use "plots"

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.

Can you post the full error?

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

Looks the same as GR precompilation fails on MacOS 12.3 Beta on Apple M1 processor · Issue #449 · jheinen/GR.jl · GitHub. The underlying cause appears to be the assumption that GR.jl/GR.jl at 90afd2a898881d527a526583468c3fd88678156a · jheinen/GR.jl · GitHub makes that deps.jl always exists, which might not be the case.

1 Like

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.

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

it worked for me, initially.!

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

1 Like