By: Josh Day
Re-posted from: https://www.juliafordatascience.com/first-steps-1-installing-julia/
💻 Installing Julia
The recommended method of installing Julia is through the official binaries available at https://julialang.org/downloads/. Simply choose the proper link for your platform.
My Platform is…
🍎 macOS
- Double-click the
.dmg
file and drag "Julia-1.6" into "Applications". - In the Applications folder, double-click "Julia-1.6" and voila 🎉!
- Optional: Add
julia
to yourPATH
environmental variable. This means you can start Julia by typingjulia
in a terminal (like Terminal.app that ships with every Mac). Copy and paste these two commands into your shell:
🪟 Windows
- Double-click the
.exe
file and follow the instructions. - Find Julia via the start menu or double-click the Desktop shortcut (if you chose to add one during step 1) and voila 🎉!
- Optional: Add
julia
to yourPATH
environmental variable. This means you can start Julia by typingjulia
in a terminal (it is recommended to use a modern terminal such as Windows Terminal from the Microsoft App Store. The easiest method is to check the "Add Julia to PATH" option in the installer. If you skipped that, the instructions slightly differ for Windows 7 and 8 vs. Windows 10.
🐧 Linux/FreeBSD
Odds are you expect less hand-holding 😃. Click the above link ☝️.
🎁 Packages for Data Science
Installing Packages
Julia comes with an amazing package manager. Pkg
will be covered in a different post. For now we'll just say that to add a package (StatsBase
, for example), you'll use:
Core Data Science Packages
There are many fantastic data science tools in Julia's package ecosystem. Many of them will be covered in future posts. For now, we recommend getting started with the following:
- StatsBase: Basic Statistics for Julia.
- DataFrames: In-memory tabular data in Julia.
- Plots: Powerful convenience for Julia visualizations and data analysis.
- Pluto: Simple reactive notebooks for Julia.
To install these packages, run the following in Julia:
That's It!
You're ready to go 🚀.
Next up is First Steps #2: The REPL