# Offline installtion of a package (PyPlot) in JULIA

**URL:** <https://discourse.julialang.org/t/offline-installtion-of-a-package-pyplot-in-julia/81765>\
**Category:** New to Julia\
**Tags:** plotting\
**Created:** [May 27, 2022, 7:02am UTC](https://discourse.julialang.org/t/offline-installtion-of-a-package-pyplot-in-julia/81765 "2022-05-27T07:02:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_SACHIN](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/_sachin/32/35272_2.png) [@\_SACHIN](https://discourse.julialang.org/u/_SACHIN)\
**Post date:** [May 27, 2022, 7:02am UTC](https://discourse.julialang.org/t/offline-installtion-of-a-package-pyplot-in-julia/81765/1 "2022-05-27T07:02:32Z")

</div>

In `Julia`, A package can be installed through `using Pkg`; `Pkg.add("PyPlot")` directly.

but how the same package can be installed offline ?

thanks.  
`

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [May 27, 2022, 9:37am UTC](https://discourse.julialang.org/t/offline-installtion-of-a-package-pyplot-in-julia/81765/2 "2022-05-27T09:37:15Z")

</div>

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.

See: [Portable Julia - #6 by PetrKryslUCSD](https://discourse.julialang.org/t/portable-julia/45339/6)

---

<div class="post-metadata">

**Author:** ![MLackner](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mlackner/32/2789_2.png) [@MLackner](https://discourse.julialang.org/u/MLackner)\
**Post date:** [May 27, 2022, 12:39pm UTC](https://discourse.julialang.org/t/offline-installtion-of-a-package-pyplot-in-julia/81765/3 "2022-05-27T12:39:56Z")

</div>

Another possibility is to download the git repository to a usb stick, plug that into your computer and then in package mode do

```julia
(@v1.7) pkg> add /local/path/to/git/repo

```

---

<div class="post-metadata">

**Author:** ![\_SACHIN](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/_sachin/32/35272_2.png) [@\_SACHIN](https://discourse.julialang.org/u/_SACHIN)\
**Post date:** [May 31, 2022, 7:12am UTC](https://discourse.julialang.org/t/offline-installtion-of-a-package-pyplot-in-julia/81765/4 "2022-05-31T07:12:41Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![MLackner](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mlackner/32/2789_2.png) [@MLackner](https://discourse.julialang.org/u/MLackner)\
**Post date:** [May 31, 2022, 7:18am UTC](https://discourse.julialang.org/t/offline-installtion-of-a-package-pyplot-in-julia/81765/5 "2022-05-31T07:18:08Z")

</div>

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.
