# Julia v1.7.0-beta3 installs old Turing version

**URL:** <https://discourse.julialang.org/t/julia-v1-7-0-beta3-installs-old-turing-version/66185>\
**Category:** Probabilistic Programming\
**Tags:** package, installation\
**Created:** [August 11, 2021, 7:15am UTC](https://discourse.julialang.org/t/julia-v1-7-0-beta3-installs-old-turing-version/66185 "2021-08-11T07:15:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stst](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stst/32/17252_2.png) [@stst](https://discourse.julialang.org/u/stst)\
**Post date:** [August 11, 2021, 7:15am UTC](https://discourse.julialang.org/t/julia-v1-7-0-beta3-installs-old-turing-version/66185/1 "2021-08-11T07:15:22Z")

</div>

`] add Turing` in the REPL of a fresh Julia v1.7.0-beta3 install on Windows with an emtpy `.julia` folder installs Turing v0.15.1 instead of the most recent v0.17.0.

`] add Turing@v0.17.0` results in an unsatisfiable requirement error for the package `Libtask`, due to `Libtask_jll`:

```julia
(@v1.7) pkg> add Turing@v0.17.0
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package Libtask [6f1fad26]:
 Libtask [6f1fad26] log:
 ├─possible versions are: 0.1.1-0.5.3 or uninstalled
 ├─restricted by compatibility requirements with Turing [fce5fe82] to versions: [0.4.0-0.4.2, 0.5.3]
 │ └─Turing [fce5fe82] log:
 │ ├─possible versions are: 0.5.0-0.17.0 or uninstalled
 │ └─restricted to versions 0.17.0 by an explicit requirement, leaving only versions 0.17.0
 ├─restricted by compatibility requirements with AdvancedPS [576499cb] to versions: 0.5.3
 │ └─AdvancedPS [576499cb] log:
 │ ├─possible versions are: 0.1.0-0.2.4 or uninstalled
 │ └─restricted by compatibility requirements with Turing [fce5fe82] to versions: 0.2.4
 │ └─Turing [fce5fe82] log: see above
 └─restricted by compatibility requirements with Libtask_jll [3ae2931a] to versions: 0.1.1-0.4.2 or uninstalled — no versions left
   └─Libtask_jll [3ae2931a] log:
     ├─possible versions are: 0.3.0-0.5.1 or uninstalled
     └─restricted by julia compatibility requirements to versions: [0.3.0-0.3.2, 0.5.0-0.5.1] or uninstalled

```

Any suggestions on how to fix or work around this?

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [August 11, 2021, 10:58am UTC](https://discourse.julialang.org/t/julia-v1-7-0-beta3-installs-old-turing-version/66185/2 "2021-08-11T10:58:05Z")

</div>

Looks like you need to remove AdvancedPS as it restricts compat with LibTask?

Incidentally it’s not recommended to install packages in the default environment, it’s better to have project specific environments for whatever concrete thing you’re working on, both to have reproducibility and minimise the likelihood of compat issues like the one you’re seeing here.

---

<div class="post-metadata">

**Author:** ![sostock](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sostock/32/5546_2.png) [@sostock](https://discourse.julialang.org/u/sostock)\
**Post date:** [August 11, 2021, 12:50pm UTC](https://discourse.julialang.org/t/julia-v1-7-0-beta3-installs-old-turing-version/66185/3 "2021-08-11T12:50:39Z")

</div>

This also happens in a clean environment. The reason for this is completely within the dependencies of `Turing`:

- `Turing` 0.17.0 requires `AdvancedPS` 0.2.4 (the latest version)
- `AdvancedPS` 0.2.4 requires `Libtask` 0.5.3 (the latest version).
- `Libtask` 0.5.3 requires `Libtask_jll` 0.4, which requires Julia 1.6 (not older, not newer).

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [August 11, 2021, 3:41pm UTC](https://discourse.julialang.org/t/julia-v1-7-0-beta3-installs-old-turing-version/66185/4 "2021-08-11T15:41:39Z")

</div>

you need to add both Turing and Libtask with #master

---

<div class="post-metadata">

**Author:** ![stst](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stst/32/17252_2.png) [@stst](https://discourse.julialang.org/u/stst)\
**Post date:** [August 11, 2021, 4:53pm UTC](https://discourse.julialang.org/t/julia-v1-7-0-beta3-installs-old-turing-version/66185/5 "2021-08-11T16:53:57Z")

</div>

Thanks for the explanations and suggestions!

Adding Libtask#master and Turing#master works without conflicts, but `test Libtask` throws an error - I filed an issue [here](https://github.com/TuringLang/Libtask.jl/issues/91).
