I’m starting a new project in Julia that I expect will be shared across my team. In order to simplify the environment setup process I’d like to have a single command one can issue to install all of my project’s dependencies. What’s the preferred method for handling this in Julia? I’m coming from a Python background so I’m thinking along the lines of pip requirements files.
I apologize if this question has been answered before. I’ve done some digging and can’t find anything that directly discusses the subject–I’m starting to think I’m coming about it from the wrong angle.
The Julia package manager (known as Pkg) will handle this for you. They should just be able to run
] instantiate at the REPL) to get the necessary dependencies.
The simpler way is to use (from REPL):
] # So next commands are for Pkg
In that way, you would have a local list of packages (like virtualenv). To add new dependencies you only have to do:
and you could use it.
Later, to use that proyect in julia you can say:
or defining JULIA_PROJECT.
Then, your colleages could do “instantiate” as @simonbyrne say.
See https://julialang.github.io/Pkg.jl/v1/ for more information.
I would like to point out that
Pkg has a new quickstart guide available: https://julialang.github.io/Pkg.jl/dev/getting-started/.