Error when Pkg.add("Julia")

I’m really new here.

import Pkg
Pkg.add(“Julia”)
But get the error.
ERROR: The following package names could not be resolved:

  • Julia (not found in project, manifest or registry)
    Suggestions: julia JuliaZH JuliaDB JuliaCon JuliaFEM JuliaKara JuliaInXL Julia_jll JuliaChem JuliaGrid JuliaBerry

What should I do?

You are already in Julia, you don’t need to add it using Pkg.

1 Like

But How can I jump into jupyter notebook?

You are looking for IJulia (note the I), not Julia.

2 Likes

Thanks, what’s the difference between “IJulia” and “Julia”? I use >Pkg.add(“IJulia”) instead, it is right.

The package IJulia exists, Julia doesn’t.

1 Like

The name IJulia is probably inspired by IPython, which was the origin of the Jupyter notebook. IPython stands for “Interactive Python”, so you can think of IJulia as an “Interactive Julia”.
Julia is the underlying language that compiles and runs your code. IJulia is a connecting layer that makes it possible to run Julia from Jupyter.

3 Likes