Q:

Loading packages into Julia does not work

I installed Julia 1.0 on my iMac running macOS High Sierra 10.13.6. I installed Julia and when I double click on it in my Applications folder, I get the expected screen shown below.

But now that it's loaded it doesn't respond to commands as expected. In the instructions to set up Julia, I was instructed to load IJulia using the command Pkg.add("IJulia"). When I type this command I get the following message:
ERROR: UndefVarError: Pkg not defined
Stacktrace:
 [1] top-level scope at none:0

I've tried other commands to add packages and I get same error messages. Does anyone know why I can not load packages into Julia?

A:

Pkg.add not working #627

You need import Pkg first. Or use the repl mode with ] and then add IJulia.

Running import Pkg should resolve the issue.

