Stream: helpdesk (published)

Topic: Faster installation of packages in new Environment


view this post on Zulip Davi Sales Barreira (Feb 11 2022 at 01:43):

So, every new Julia Environment I create, I end up just activating and installing the necessary packages. But sometimes, many of the same packages are shared... Is Julia already using what I have installed or is it installing again? I had the feeling that it was reusing somehow, but it sometimes takes quite a long time... Is it because it's actually getting a newer version?

view this post on Zulip Sundar R (Feb 11 2022 at 01:49):

Yeah, if you have the latest version of the package already, Julia reuses it.

view this post on Zulip Sundar R (Feb 11 2022 at 01:50):

if there's a newer version though, that gets downloaded, precompiled, etc.

view this post on Zulip Sundar R (Feb 11 2022 at 01:53):

If you know you have a "good enough" version of the package and want to quickly get things done, you can set Pkg.offilne(true) before the add command, that will reuse the existing version of the package (or of course, fail if there's no existing version). I mainly do this for temporary environments where I just want to test something out quickly.


Last updated: Oct 02 2023 at 04:34 UTC