# Cannot Install JuliaDB

**URL:** <https://discourse.julialang.org/t/cannot-install-juliadb/53057>\
**Category:** General Usage\
**Tags:** package, juliadb\
**Created:** [January 8, 2021, 6:48pm UTC](https://discourse.julialang.org/t/cannot-install-juliadb/53057 "2021-01-08T18:48:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PikaPhD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pikaphd/32/20865_2.png) [@PikaPhD](https://discourse.julialang.org/u/PikaPhD)\
**Post date:** [January 8, 2021, 6:48pm UTC](https://discourse.julialang.org/t/cannot-install-juliadb/53057/1 "2021-01-08T18:48:55Z")

</div>

I am trying to install JuliaDB so I can start learning how to use databases in Juila.

I am having a conflict with StatsBase. If I understand the error message correctly, JuliaDB requires version 0.13.1 or earlier of StatsBase, but only versions 0.24.0 to 0.33.2 are available?

I’ve tried:  
pkg\> update, which didn’t solve the issue.

I’ve tried:  
using Pkg  
Pkg.develop(“StatsBase”)  
Pkg.add(“JuliaDB”), which didn’t solve the issue

and I’ve tried:  
using Pkg  
Pkg.rm(“StatsBase”)  
Pkg.add(“JuliaDB”), which also didn’t solve the issue.

The error code is always a little different, but always includes “unsatisfiable requirements” between JuliaDB and StatsBase. After removing StatsBase and trying to add JuliaDB, I got the error message below.

Any help would be much appreciated! If JuliaDB isn’t the right package to use for making databases, recommendations on the most current packages would be much appreciated as well.

julia\> Pkg.add(“JuliaDB”)  
Resolving package versions…  
ERROR: Unsatisfiable requirements detected for package StatsBase [2913bbd2]:  
StatsBase [2913bbd2] log:  
├─possible versions are: [0.24.0, 0.25.0, 0.26.0, 0.27.0, 0.28.0-0.28.1, 0.29.0, 0.30.0, 0.31.0, 0.32.0-0.32.2, 0.33.0-0.33.2] or uninstalled  
├─restricted by compatibility requirements with LsqFit [2fda8390] to versions: [0.32.0-0.32.2, 0.33.0-0.33.2]  
│ └─LsqFit [2fda8390] log:  
│ ├─possible versions are: [0.5.0, 0.6.0, 0.7.0-0.7.3, 0.8.0-0.8.1, 0.9.0, 0.10.0, 0.11.0, 0.12.0] or uninstalled  
│ └─restricted to versions 0.12.0 by an explicit requirement, leaving only versions 0.12.0  
├─restricted by compatibility requirements with PGFPlots [3b7a836e] to versions: 0.33.0-0.33.2  
│ └─PGFPlots [3b7a836e] log:  
│ ├─possible versions are: [3.0.0-3.0.3, 3.1.1-3.1.3, 3.2.0-3.2.1, 3.3.0-3.3.4] or uninstalled  
│ └─restricted to versions 3.3.4 by an explicit requirement, leaving only versions 3.3.4  
└─restricted by compatibility requirements with JuliaDB [a93385a2] to versions: [0.24.0, 0.25.0, 0.26.0, 0.27.0, 0.28.0-0.28.1, 0.29.0, 0.30.0, 0.31.0, 0.32.0-0.32.2] — no versions left  
└─JuliaDB [a93385a2] log:  
├─possible versions are: [0.9.0, 0.10.0, 0.11.0-0.11.2, 0.12.0, 0.13.0-0.13.1] or uninstalled  
└─restricted to versions \* by an explicit requirement, leaving only versions [0.9.0, 0.10.0, 0.11.0-0.11.2, 0.12.0, 0.13.0-0.13.1]

---

<div class="post-metadata">

**Author:** ![Skoffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skoffer/32/378_2.png) [@Skoffer](https://discourse.julialang.org/u/Skoffer)\
**Post date:** [January 9, 2021, 6:46pm UTC](https://discourse.julialang.org/t/cannot-install-juliadb/53057/2 "2021-01-09T18:46:36Z")

</div>

The reason is different:

- `LsqFit` requires `0.32-0.33`
- `JuliaDB` requires `0.32`
- `PGFPlots` requires `0.33`

So you have package conflict between `JuliaDB` and `PGFPlots`. It looks like `JuliaDB` is too restrictive, so If you can avoid using `PGFPlots` you’ll be fine. One way is to remove `PGFPlots.jl`, but it is better to create a separate clean environment. To do it, you can create a new directory and inside that directory, you can do

```julia
# Switch to Pkg mode
julia> ]
pkg> activate .
pkg> add StatsBase
pkg> add JuliaDB

```

and everything should be installed without problem.

Also, it makes sense to open an issue in [JuliaDB](https://github.com/JuliaData/JuliaDB.jl/issues), maybe these restrictions can be lifted.

---

<div class="post-metadata">

**Author:** ![sashmit](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sashmit/32/18791_2.png) [@sashmit](https://discourse.julialang.org/u/sashmit)\
**Post date:** [October 28, 2021, 1:34pm UTC](https://discourse.julialang.org/t/cannot-install-juliadb/53057/3 "2021-10-28T13:34:07Z")

</div>

Ran into similar issues, it seems like JuliaDB’s StatsBase requirement has diverged a lot from many other packages at this point.

[https://github.com/JuliaData/JuliaDB.jl/issues/403](https://github.com/JuliaData/JuliaDB.jl/issues/403)
