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?
Yeah, if you have the latest version of the package already, Julia reuses it.
if there's a newer version though, that gets downloaded, precompiled, etc.
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: Nov 22 2024 at 04:41 UTC