Tag Archives: Julia

Julia LoadError: Failed to precompile GR [How to Solve]

Julia LoadError: Failed to precompile GR problem solving

Suddenly reported an error after running,It doesn’t work whether it is uninstalled and then installed
here Insert picture description
I suddenly thought about whether the version is too high or not

Update the specified version in the package manager, I will update to the next-level version and the problem will be solved.
insert image description here

Julia install and use the extension package package (ERROR: UndefVarError: Pkg not defined)

Julia1.0 has just been installed and I want to take the first step:

Pkg.add("PyPlot")

ERROR: ERROR: UndefVarError: Pkg not defined
 
Problem description:
Since Julia’s extension pack is installed using a Pkg extension pack, you must import Julia’s extension pack Pkg before installing the extension pack
 
Solutions:
Import the Pkg package
Then use the pkg. add() command

using Pkg
Pkg.add("Packagename")