Self contained virtual environments for Julia.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.8 KiB



VirtualEnv.jl provides support for creating lightweight “virtual environments” with their own site directories, isolated from system site directories. Each virtual environment has its own Julia binary (which matches the version of the binary that was used to create this environment) and can have its own independent set of installed Julia packages in its site directories.

Supported Shells

  • Bash
  • ZSH
  • Windows Command Prompt


  • Fish
  • CSH
  • Powershell


~$ julia -e 'using Pkg; Pkg.add("VirtualEnv")'

add ~/.julia/bin to your PATH, or you can install paths automatically with

using VirtualEnv; VirtualEnv.comonicon_install_path()



Creates virtual Julia environments in one or more target directories.


  venv [options] [flags] <env_dirs>


  <env_dirs>               One or more directories to create environments in.


  -p, --prompt <prompt>    Provides an alternative prompt prefix for this
                           environment.(Default: ENV_DIR)


  -c, --clear              Delete the contents of the environment directory if it
                           alreadyexists. (Default: false)

  -u, --upgrade            Upgrade the environment directory to use this version
                           ofJulia. (Default: false)

  -h, --help               print this help message

  -V, --version            print version information

Print help dialogue:

~$ venv -h

Creating a virtual environment:

~$ venv env

Activating the virtual environment:

~$ source env/bin/activate

Deactivating an environment:

~$ deactivate