how to find version number of Julia? Is there a ver() command?

21,033

Solution 1

Use the versioninfo command:

From the documentation:

versioninfo([verbose::Bool])

    Print information about the version of Julia in use. If the verbose argument 
    is true, detailed system information is shown as well.

Solution 2

Just entering out the constant VERSION would also display the version number.

julia> VERSION
v"0.4.0"

Solution 3

If you are using windows,you can use julia -version of the cmd command

Share:
21,033
Steve H
Author by

Steve H

Updated on July 09, 2022

Comments

  • Steve H
    Steve H almost 2 years

    I installed Julia studio 0.4.4, and found it does not support multi-line comments #=...=# so I wanted to find what version of Julia it is running.

    In Matlab one types the command ver which not only shows the version number of matlab, but also the version numbers of all toolboxes installed.

    I googled for sometime, but not able to find similar command for Julia. Is there such a command for Julia?

    julia> Version
    ErrorException("Version not defined")
    julia> ver
    ErrorException("ver not defined")
    julia> ver()
    ErrorException("ver not defined")
    julia> Version()
    ErrorException("Version not defined")
    
  • mbauman
    mbauman over 9 years
    There's also the VERSION constant which simply contains the version number.
  • phyatt
    phyatt about 5 years
    One related usage of this variable to make a section of code for a specific version or range of versions: @static if VERSION >= v"0.7" ....... end
  • Markus Hauschel
    Markus Hauschel over 4 years
    what if you have multiple versions installed?
  • Samir
    Samir about 4 years
    Inside julia prompt, versioninfo() will get you version info.