How to Install a Package in Julia (Example Included)

The general syntax to install a package in Juila is:

using Pkg
Pkg.add("Package Name")

In the next section, you’ll see the steps to install the DataFrames package.

Steps to Install a Package in Julia

Step 1: Open the Julia Command-Line

To start, open the Julia command-line, also known as the REPL (read-eval-print-loop):


Step 2: Install a Package

Type the following command, and then press ENTER:

using Pkg

To install the DataFrames package, type the command below, and then press ENTER:


You’ll need to wait for about a minute for the installation to complete.

Install a Package in Julia using Jupyter Notebook

If you already added Julia to Jupyter Notebook, then you may install the DataFrames package using the same syntax as reviewed above:

using Pkg

The same principles apply if you wish to install other packages in Julia.

Leave a Comment