Skip to main content

julialang

Install, switch and remove Julia versions with pip: no installer, no apt, no juliaup.

PyPI Python Wheel Sync License

pip install julialang && julialang install && julia

Contents

Why julialang?

On machines where you have no sudo/admin rights, or where the network only reaches PyPI and GitHub (a locked-down server, a CI runner, the sandbox of Claude chat), you cannot run an installer, apt or juliaup, and julialang.org is blocked. pip install julialang fixes that: it needs nothing but pip, installs Julia in your home directory from GitHub, and works the same on Linux, macOS and Windows. As far as we know there is no other simple way to get Julia there.

Like ziglang does for Zig, julialang makes Julia installable from Python tooling. What you get:

  • Tiny wheel. pip install julialang downloads a pure-Python wheel of a few KB (py3-none-any), the same on every platform.
  • No julialang.org needed. The official binaries are mirrored on GitHub by CI; julialang downloads from there and verifies sha256 and md5.
  • Many versions side by side. Install as many as you like, switch with one command, upgrade, downgrade, remove.
  • pip-style version specs. julialang install ">=1.10,<1.13", julialang install 1.12, julialang install ~=1.12.2.
  • Every stable release, kept current. The mirror covers all stable Julia versions, from 0.x to the latest. A scheduled GitHub Action crawls julialang.org every week (and on every push to the repository) and mirrors each new release by itself.
  • Zero dependencies. Standard library only. Works on Linux (x86_64, aarch64, i686), macOS (x86_64, arm64) and Windows (x86_64, i686) with Python 3.9+.

Quick start

pip install julialang
julialang install                 # latest Julia, becomes the default
julia -e 'println("hello from Julia ", VERSION)'

Julia itself is not inside the wheel: julialang install downloads it into ~/.julialang.

Everyday use

Install Julia

julialang install                 # the latest version
julialang install 1.12            # the newest 1.12.x
julialang install 1.10.5          # exactly this version
julialang install ">=1.10,<1.13"  # the newest version that satisfies the spec
julialang install 1.10 1.12       # several at once

install only adds versions: nothing is removed, and the installed version becomes the default. Pass --no-default to keep the current default:

julialang install 1.10 --no-default

Run Julia

julia is a thin shim that runs the selected Julia with your arguments. When only Python is on your PATH, julialang run does the same (everything after run goes to Julia):

julia                             # REPL
julia script.jl                   # run a script
julia -e 'print(VERSION)'
JULIALANG_VERSION=1.10 julia -e 'print(VERSION)'   # one command with another installed version
julialang run script.jl           # the same as `julia script.jl`
python -m julialang run -e 'print(VERSION)'

Which Julia runs: JULIALANG_VERSION (a spec, must be installed), else the version pinned for the project by a .julialang file, else the default chosen by julialang, else the newest installed one. The shim never touches the network. If nothing is installed yet it tells you to run julialang install (set JULIALANG_AUTO_INSTALL=1 to let julia install the latest on first use instead).

See what you have

julialang                         # status: installed versions, the default, the latest on the mirror
julialang list                    # installed versions and the ones the mirror offers
julialang list --installed        # only what is on your machine
julialang list --all              # everything the mirror has
julialang latest                  # newest version on the mirror
julialang which                   # path of the executable `julia` runs
julialang fetch                   # refresh the cached list of mirrored versions now

Switch version

Switch the default among the versions you have installed:

julialang use 1.10
julia -e 'print(VERSION)'         # 1.10.x
julialang use latest

use never downloads: if the version is not installed it tells you to julialang install it first.

Pin a version per project

A .julialang file in a project directory pins the Julia version for that project: every julia (and julialang run) started in that directory or below uses it, whatever the global default is.

cd my-project
julialang pin 1.10                # creates .julialang; any version spec works: 1.10, ">=1.10,<1.13", ~=1.12.2
julia -e 'print(VERSION)'         # 1.10.x here, the default everywhere else
julialang pin                     # show the pin that applies to this directory
julialang pin --remove            # delete the pin of this directory

The file is plain text, one key = value per line (# starts a comment), and is meant to be committed with the project:

# julialang project settings
julia-version = "1.10"

julia-version is the only setting for now; unknown keys are ignored. The nearest .julialang file wins, searching from the current directory upwards (the ~/.julialang directory that holds your installed versions is never mistaken for one). Order of precedence: JULIALANG_VERSION > .julialang > the default (julialang use) > the newest installed version. A pin never downloads anything: if no installed version matches, julia stops and tells you to run julialang install SPEC.

Julia packages on restricted networks

Installing Julia is only half of it: Pkg.add normally downloads packages from pkg.julialang.org, which is blocked on the same machines where you need julialang (only PyPI and GitHub are reachable). So julia (and julialang run) starts Julia with JULIA_PKG_SERVER="" by default: Pkg then clones the registry and downloads packages straight from GitHub.

julia -e 'using Pkg; Pkg.add("JSON")'      # works with nothing but GitHub reachable

The first Pkg.add clones the whole General registry and precompiles what it installs, so it takes a while; packages are fast afterwards. On a normal network the package server is quicker, so you can turn this off:

julialang config                           # show the settings
julialang config disable-pkg-server false  # let Julia use pkg.julialang.org again
julialang config disable-pkg-server true   # the default

The setting lives in ~/.julialang/config.json ("disable_pkg_server", default true). Every setting can also be overridden by an environment variable named JULIALANG_ plus the setting in capitals, so here JULIALANG_DISABLE_PKG_SERVER=false (true/false, also 1/0, yes/no, on/off; empty counts as unset). Order: environment variable > config.json > default; julialang config prints which one is in effect. A JULIA_PKG_SERVER that is already set in your environment, even to an empty string, is your explicit choice: julialang never touches it and the setting is ignored.

Verify downloads

Every archive is checked against the sha256 (and md5) in the mirror's julia-list.json before it is unpacked. That list lives in the same GitHub repository as the archives, so on its own it protects against corruption, not against someone who takes over the repository and changes the archive and the list together. Two things go further:

# 1. The list holds two sha256 values per file: the one the mirror computed and the one julialang.org published.
#    By default a disagreement (or a missing value) only prints a warning; --strict downloads nothing and fails.
julialang install 1.12.4 --strict
julialang config strict true            # make it the default (or JULIALANG_STRICT=true)

# 2. The strongest check: bring the official hash yourself. Read it on a machine you trust (https://julialang.org/downloads/),
#    then the archive must match it, whatever the mirror's list says.
julialang hashes 1.12.4                 # what the mirror holds, per platform, to compare with julialang.org
julialang install 1.12.4 --sha256 <HEX> # or JULIALANG_SHA256=<HEX>

--sha256 belongs to one archive (your platform's), so it needs one exact version such as 1.12.4.

Upgrade and downgrade

install keeps old versions; upgrade and downgrade replace the current default:

julialang upgrade                 # install the latest, make it the default, remove the previous default
julialang upgrade 1.12            # ... or the newest 1.12.x
julialang downgrade 1.10          # same, towards an older version (the spec is required)

The previous default is deleted only after the new version is downloaded and its checksum verified. Asking upgrade for an older version (or downgrade for a newer one) is an error that points you to the other command; asking for the version you already use just says so.

Remove versions

julialang uninstall 1.12.2        # one version
julialang uninstall 1.10 1.11     # several
julialang uninstall "<1.12" --yes # a spec that matches many versions asks first; --yes skips the question

Uninstalling the default promotes the newest remaining version to be the new default.

Remove everything

julialang purge                   # delete every installed Julia and julialang's data; the pip package stays
julialang self-uninstall          # purge, then `pip uninstall julialang`

Both ask first (--yes skips the question). purge deletes every installed Julia and julialang's own files in ~/.julialang; self-uninstall does the same and then runs python -m pip uninstall -y julialang for you. (A directory set with JULIALANG_HOME is only removed if nothing else lives in it.)

Installed versions live outside your virtual environment, so a plain pip uninstall julialang leaves them in place: run julialang self-uninstall instead, or delete ~/.julialang (Windows: %USERPROFILE%\.julialang) by hand afterwards.

Version specs

Specs work like pip's, with npm-style handling of partial versions:

Spec Meaning
latest (or nothing) the newest version
1, 1.12, 1.12.*, ==1.12 the newest 1.x / 1.12.x
1.12.4, ==1.12.4 exactly that version
!=1.12.4 anything but 1.12.4
>=1.10, <1.13 comparison, as in pip
<=1.12, >1.12 with a partial version the whole line counts: <=1.12 includes 1.12.x, >1.12 starts at 1.13
~=1.12.2 compatible release: >=1.12.2,<1.13 (and ~=1.12 is >=1.12,<2)
>=1.10,<1.13 comma-joined: every part must hold, the newest match wins

Quote specs that contain < or > so the shell does not treat them as redirection. Several words are joined with commas, so julialang install ">=1.10" "<1.13" means the same as julialang install ">=1.10,<1.13".

Command reference

Command What it does
julialang / julialang status installed versions, the default and the latest available
julialang list [--all|--installed] installed and mirrored versions
julialang fetch refresh the cached list of mirrored versions
julialang latest print the newest mirrored version
julialang install [SPEC...] [--no-default] [--strict] [--sha256 HEX] download and install (latest if no spec); makes it the default; see Verify downloads
julialang uninstall SPEC... [--yes] delete versions (aliases: remove, rm)
julialang use SPEC set the default among installed versions
julialang upgrade [SPEC] [--strict] install the target (latest by default), make it the default, delete the old default
julialang downgrade SPEC [--strict] the same towards an older version (spec required)
julialang hashes [SPEC] sha256 of a version's archives on the mirror, to compare with julialang.org
julialang purge [--yes] remove all Julia versions and julialang's data; the pip package stays
julialang self-uninstall [--yes] purge, then pip uninstall julialang
julialang run [ARGS...] run the selected Julia with ARGS: the same as the julia command (also python -m julialang run ...)
julialang pin [SPEC] [--remove] pin a version for this project in a .julialang file; without a spec, show the pin
julialang config [NAME [VALUE]] show or change settings: disable-pkg-server (default true: Julia runs with JULIA_PKG_SERVER="") and strict (default false)
julialang which path of the executable julia runs
julialang -v, julialang --version version of this package

The cached version list is trusted for one hour by status, list and latest; install, upgrade, downgrade and fetch always try the network first and fall back to the cache when offline.

Environment variables

Variable Effect
JULIALANG_HOME where versions, config.json and the cache live (default ~/.julialang)
JULIALANG_VERSION spec of an installed version that julia should run, instead of the default
JULIALANG_AUTO_INSTALL=1 let julia install the latest version on first use
JULIALANG_DISABLE_PKG_SERVER true/false: overrides the disable-pkg-server setting of config.json (every setting has such a JULIALANG_<NAME> variable)
JULIALANG_STRICT true/false: overrides the strict setting: refuse a mirror list whose two sha256 values disagree
JULIALANG_SHA256 official sha256 of the one exact version being installed (same as install --sha256)
JULIA_PKG_SERVER Julia's own variable. If set (even empty), julialang leaves it alone; otherwise julia sets it to empty unless disable-pkg-server is false
JULIALANG_REPO GitHub repository to read the mirror from (default MohammadRaziei/julialang)
JULIALANG_LIST_URL full URL of julia-list.json, overriding JULIALANG_REPO (useful for your own mirror or tests)

State layout: ~/.julialang/versions/<version>/ holds each Julia, and ~/.julialang/config.json records the default and the installed versions; it is re-synchronised with the folders on every command, so you can also delete a folder by hand.

Notes

  • The julia command of this package may shadow another julia earlier on your PATH; julialang which shows what is actually run.
  • GitHub pauses scheduled workflows after 60 days without repository activity; if the weekly sync stops, re-enable it in the Actions tab.

Disclaimer

julialang is an unofficial, community project. It is not affiliated with, endorsed by or sponsored by the Julia project, the JuliaLang organization or JuliaHub; "Julia" and the Julia logo belong to their owners. The binaries it mirrors are the unmodified official releases from julialang.org, checked against the checksums published there when they are mirrored.

Julia itself is MIT-licensed, but its binary distribution bundles third-party libraries under their own licenses (see share/julia/ and share/licenses inside each installed version). The code in this repository is MIT licensed (see LICENSE).

Metadata

Release files for julialang 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for julialang 0.4.0
File Size Uploaded Provenance Actions
julialang-0.4.0.tar.gz 39.9 kB Without provenance Details for julialang-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for julialang 0.4.0
File Interpreter ABI Platform Actions
julialang-0.4.0-py3-none-any.whl Python 3 none any Details for julialang-0.4.0-py3-none-any.whl

Total release size: 64.2 kB

Release files / julialang-0.4.0.tar.gz

Download URL julialang-0.4.0.tar.gz
Size 39.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2bf478ec668f317c5f6834e1dc972f8abfa070bfe2c6aeca179217c8af7a199f
BLAKE2b-256 checksum
How to use checksums
34a1bcbf4159cd4c2b8906fb8de6e427d8ffe3fb250a035e1804900240cfe228
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / julialang-0.4.0-py3-none-any.whl

Download URL julialang-0.4.0-py3-none-any.whl
Size 24.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86f0ba71f212afb3ca8b884e07759085ba520b6b13d2e6959f3b9c146ccefdb2
BLAKE2b-256 checksum
How to use checksums
d7d369df3c904ee0acf83caa3e98d96c22214be28995a6e16450878770a8c581
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for julialang 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page