Open In App

How to Install Julia on Windows ?

Improve
Improve
Like Article
Like
Save
Share
Report

Julia is a programming language used for statistical computations and data analysis. Julia is a combination of super-fast execution speed of C and flexible code writing of Python. Working with Julia is considered to be super fun and super easy among the Computer scientists and Software Engineers, because of its high efficiency.

Getting Started with Julia

Julia programs can be written in any of the widely used text editors like Notepad, Notepad++, gedit, etc. or on any of the text-editors. One can also use an online IDE for writing Julia codes or can even install one on their system to make it more feasible to write these codes because IDEs provide a lot of features like intuitive code editor, debugger, compiler, etc.
To begin with, writing Julia Codes and performing various intriguing and useful operations, one must have Julia installed on their System. This can be done by following the step by step instructions provided below:

Checking for a pre-installed Julia Version:

Before we begin with the installation of Julia, it is good to check if it might be already installed on your system. To check if your device is preinstalled with Julia or not, just go to the Command line(search for cmd in the Run dialog( + R)).
Now run the following command:

julia

Julia-PreInstallation-Check

Downloading and Installing Julia:

Downloading Julia:
Before starting with the installation process, you need to download it. Julia for Windows is available on its official site julialang.org
Julia-Download-Window
 
Download Julia and follow the further instructions for its installation.

Beginning with the Installation:

Step 1: Once the downloading is over, click on the setup to open it and follow the step-by-step instructions provided. Click on the Next button, to begin with, the installation process:
Julia-Windows-Installation-01
 
Step 2: Select the destination directory to store Julia files. Click on the Next button to proceed.
Julia-Windows-Installation-02
 
Step 3: Installation process might take a while to Extract and register files. Sit back and Relax!
Julia-Windows-Installation-03
 
Step 4: Once the installation is over, you can proceed with creating shortcuts to open Julia and click on the Finish button to complete the installation process.
Julia-Windows-Installation-04
 
After the installation process is completed, there is a need to set up the Environment for Julia to use it on the command line. Go through How to set up Environment Variable in Julia?

To check if the installation and Path setup is done correctly, type the following command on the command-line:

julia

Julia-PostInstallation-Check
 
After completing the installation process, any IDE or text editor can be used to write Julia Codes and Run them on the IDE or the Command prompt with the use of command:

julia file_name.jl

Let’s consider a simple Hello World Program.




# Julia program to print Hello World
   
# print function
print("Hello World!"


 
Julia codes can be executed in three ways:

  • On the command-line using ‘julia’ command: To execute the above sample code in Julia, open the command line and type the following command:
    julia HelloWorld.jl

    Julia-HelloWorld-Output-01

  • On the command prompt using Julia command-line: To open Julia command-line on the Windows command prompt, type the following command:
    julia

    Now in the Julia command-line type the filename that is to be executed and press Enter.

    include("HelloWorld.jl")

    Julia-HelloWorld-Output-02

  • On the Julia command-line: Search for Julia command-line in the Start Menu and open it. Now type the file name and press Enter.
    include("C:/Users/Abhinav Singh/HelloWorld.jl")

    Note: Here in the above command, there is a need to provide whole path of the directory where script file is saved unless the file is saved in the same directory where Julia compiler is stored.

    Julia-HelloWorld-Output-03



Last Updated : 06 Oct, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads