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 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 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