Packages
In computer programming, a package is a collection of modules or programs that are often published as tools for a range of common use cases, such as text processing and doing math. Programmers can install these packages and take advantage of their functionality within their own code.
This page provides instructions for installing, using, and troubleshooting packages in Julia.
Installing Packages
Start Julia REPL by typing the following in Terminal or PowerShell (Note: do not need to type $ - this is to indicate the shell prompt)
Go into REPL mode for Pkg, Julia’s built in package manager, by pressing
]
Update package repository in Pkg REPL
Add packages in Pkg REPL
Check installation
Get back to the Julia REPL and exit by pressing backspace or ^C.
To see REPL history
Using Packages
Troubleshooting
If you get an error like:
ERROR: SystemError: opening file "C:\\Users\\User\\.julia\\registries\\General\\Registry.toml"
: No such file or directoryDelete
C:\\Users\\User\\.julia\\registries
where User is your computer’s username and try againhttps://discourse.julialang.org/t/registry-toml-missing/24152
Resources
JuliaHealth and BioJulia organizations (focused on Julia packages for health and life sciences)
Julia Package: CSV.jl
Julia Package: DataFrames.jl
Last updated