In Julia
, A package can be installed through using Pkg
; Pkg.add("PyPlot")
directly.
but how the same package can be installed offline ?
thanks.
`
In Julia
, A package can be installed through using Pkg
; Pkg.add("PyPlot")
directly.
but how the same package can be installed offline ?
thanks.
`
What is the use case? Are you behind a firewall?
I mean, you could use portable Julia on an USB stick, install it at a location that has internet and then use this USB stick on the computer without internet.
Another possibility is to download the git repository to a usb stick, plug that into your computer and then in package mode do
(@v1.7) pkg> add /local/path/to/git/repo
I did as per your suggestion, which asked for some more packages, I added manually.
Finally getting the following error:
(@v1.6) pkg> add /home/sachin/PyPlot.jl/
Updating git-repo `/home/sachin/PyPlot.jl`
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package ColorTypes [3da002f7]:
ColorTypes [3da002f7] log:
├─possible versions are: 0.12.0 or uninstalled
├─ColorTypes [3da002f7] is fixed to version 0.12.0-dev
└─found to have no compatible versions left with Colors [5ae59095]
└─Colors [5ae59095] log:
├─possible versions are: 0.9.0-0.12.8 or uninstalled
└─restricted to versions [0.9-0.12, 1] by PyPlot [d330b81b], leaving only versions 0.9.0-0.12.8
└─PyPlot [d330b81b] log:
├─possible versions are: 2.10.0 or uninstalled
└─PyPlot [d330b81b] is fixed to version 2.10.0
Could you help me out ?
I just realized that PyPlot will be relying on an internet connection to search for and install packages it depends on. So my suggestion is not really feasible for PyPlot and would only work if you add all dependencies manually.
I would go for ufechner’s suggestion.