Dealing with different versions of Julia and JuliaPro and their respective package locations

Hello all,

I am having trouble understanding how to keep things tidy with multiple Julia versions on my machine (OSX Catalina 10.15). The older versions aren’t doing me much good, since I haven’t been able to get their packages to import into the version I am using (JuliaPro version 1.4.2). How can I update Julia to the latest version without having to re-install all of the packages again? It would be nice to just have a single Julia that keeps packages when I update it and that just updates the packages as the need arises.

For reference, I have the following Julia locations:

/Applications/Julia-1.1.app/
/Applications/Julia-1.1.app/
/Applications/Julia-1.1.app/
/Applications/JuliaPro-1.2.0-1.app/
/Applications/JuliaPro-1.4.0-1.app/
~/.julia/
~/.jlenv/
~/.juliapro/
~/Library/Jupyter/kernels/julia-1.0/
~/Library/Jupyter/kernels/julia-1.1/
~/Library/Jupyter/kernels/julia-1.2/
~/Library/Jupyter/kernels/juliapro_v1.4.2-1-1.4/

My shell julia is aliased to
/Applications/JuliaPro-1.4.2-1.app/Contents/Resources/julia/Contents/Resources/julia/bin/julia.

Is this partially an issue with JuliaPro and regular Julia?

How can I update Julia to the latest version without having to re-install all of the packages again?

You can activate your old environment, in JuliaPro, DEPOT_PATHS are set based on your JuliaPro version number.

Example:- JuliaPro 1.4.2-1 would store its packages in following path: ~/.juliapro/JuliaPro_v1.4.2-1 . If you’re planning on using packages installed by JuliaPro v1.3.1-2 (An older version) in v1.4.2-1, then you need to activate following environment in your JuliaPro_v1.4.2-1: ~/.juliapro/JuliaPro_v1.3.1-2/environments/v1.3 (This is the default environment that gets activated during JuliaPro 1.3.x launch)

1 Like

What do you mean by “activate”? How do I do that?

With respect to environments and what activate means, read:
https://docs.julialang.org/en/v1/stdlib/Pkg/
or:
https://julialang.github.io/Pkg.jl/v1/environments/

This FAQ also should answer your question (but taking into account that in Julia Pro the paths of the environments are different):
https://docs.julialang.org/en/v1.6-dev/manual/faq/#How-can-I-transfer-the-list-of-installed-packages-after-updating-my-version-of-Julia?-1

2 Likes