Hi, I’m a ZorinOS user and installed julia 1.6.5 now. I was going to install some packages, like Latexify and LaTeXString and I had these errors:
julia> Pkg.add(“Latexify”)
ERROR: UndefVarError: Pkg not defined
Stacktrace:
[1] top-level scope
julia> Pkg.add(“LaTeXString”)
ERROR: UndefVarError: Pkg not defined
Stacktrace:
[1] top-level scope
What’s happening? There is so little information about Julia on the Internet that forces me to open a new topic here. Thanks for all the help
Hi @munizalex,
To install packages through Pkg in Julia, you must import Pkg
first.
Did you do that?
using Pkg
pkg.add("latexify")
Alternatively, you can switch to the Pkg REPL by typing ]
, as so:
julia> ]
v(1.6.5) pkg> add Latexify
Hope this helps
3 Likes
OMG I can’t believe I was making a trivial mistake like that! Thanks @MattWillFlood Now I know
1 Like
Now I had this error after trying to install Pkg.add(“LaTeXString”). It’s because it is already installed or something else? I ask this because I saw some dependencies packages being installed after using Pkg.add(“Latexify”) Edit2: Nope “LaTeXString” is not installed and I had these bunch of errors. Dummie. I know what I was wrong, it’s LaTeXStrings, not LaTeXString