# Error when trying to install JuMP

**URL:** <https://discourse.julialang.org/t/error-when-trying-to-install-jump/16808>\
**Category:** General Usage\
**Tags:** installation\
**Created:** [October 25, 2018, 9:40pm UTC](https://discourse.julialang.org/t/error-when-trying-to-install-jump/16808 "2018-10-25T21:40:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![OvidiusCicero](https://avatars.discourse-cdn.com/v4/letter/o/73ab20/32.png) [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Post date:** [October 25, 2018, 9:40pm UTC](https://discourse.julialang.org/t/error-when-trying-to-install-jump/16808/1 "2018-10-25T21:40:27Z")

</div>

Hi there

I have a Julia 1.0.1 on a windows machine. When installing JuMP I get the following error

```
v1.0) pkg> add JuMP
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package JuMP [4076af6c]:
 JuMP [4076af6c] log:
 ├─possible versions are: [0.1.1-0.1.2, 0.2.0, 0.3.0-0.3.2, 0.4.0-0.4.1, 0.5.0-0.5.8, 0.6.0-0.6.3, 0.7.0-0.7.4, 0.8.0, 0.9.0-0.9.3, 0.10.0-0.10.3, 0.11.0-0.11.3, 0.12.0-0.12.2, 0.13.0-0.13.2, 0.14.0-0.14.2, 0.15.0-0.15.1, 0.16.0-0.16.2, 0.17.0-0.17.1, 0.18.0-0.18.4] or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions [0.1.1-0.1.2, 0.2.0, 0.3.0-0.3.2, 0.4.0-0.4.1, 0.5.0-0.5.8, 0.6.0-0.6.3, 0.7.0-0.7.4, 0.8.0, 0.9.0-0.9.3, 0.10.0-0.10.3, 0.11.0-0.11.3, 0.12.0-0.12.2, 0.13.0-0.13.2, 0.14.0-0.14.2, 0.15.0-0.15.1, 0.16.0-0.16.2, 0.17.0-0.17.1, 0.18.0-0.18.4]
 ├─restricted by compatibility requirements with ForwardDiff [f6369f11] to versions: [0.1.1-0.1.2, 0.2.0, 0.3.0-0.3.2, 0.4.0-0.4.1, 0.5.0-0.5.8, 0.6.0-0.6.3, 0.7.0-0.7.4, 0.8.0, 0.9.0-0.9.3, 0.10.0-0.10.3, 0.11.0-0.11.3] or uninstalled, leaving only versions: [0.1.1-0.1.2, 0.2.0, 0.3.0-0.3.2, 0.4.0-0.4.1, 0.5.0-0.5.8, 0.6.0-0.6.3, 0.7.0-0.7.4, 0.8.0, 0.9.0-0.9.3, 0.10.0-0.10.3, 0.11.0-0.11.3]
 │ └─ForwardDiff [f6369f11] log:
 │ ├─possible versions are: [0.0.2-0.0.3, 0.1.0-0.1.8, 0.2.0-0.2.5, 0.3.0-0.3.5, 0.4.0-0.4.2, 0.5.0, 0.6.0, 0.7.0-0.7.5, 0.8.0-0.8.5, 0.9.0, 0.10.0] or uninstalled
 │ └─restricted to versions 0.10.0 by an explicit requirement, leaving only versions 0.10.0
 └─restricted by julia compatibility requirements to versions: 0.18.3-0.18.4 or uninstalled — no versions left

```

So seemingly ForwardDiff is the problem. `update` was run before the installation.

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [October 25, 2018, 10:07pm UTC](https://discourse.julialang.org/t/error-when-trying-to-install-jump/16808/2 "2018-10-25T22:07:30Z")

</div>

Whats the output of `pkg> status`? Do you have ForwardDiff pinned for example?

---

<div class="post-metadata">

**Author:** ![OvidiusCicero](https://avatars.discourse-cdn.com/v4/letter/o/73ab20/32.png) [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Post date:** [October 25, 2018, 10:38pm UTC](https://discourse.julialang.org/t/error-when-trying-to-install-jump/16808/3 "2018-10-25T22:38:57Z")

</div>

The output is

```
v1.0) pkg> status
Status `C:\Users\Christian\.julia\environments\v1.0\Project.toml`
  [c52e3926] Atom v0.7.8
  [49dc2e85] Calculus v0.4.1
  [0c46a032] DifferentialEquations v5.3.1
  [f6369f11] ForwardDiff v0.10.0
  [28b8d3ca] GR v0.35.0
  [e5e0dc1b] Juno v0.5.3
  [429524aa] Optim v0.17.1
  [1dea7af3] OrdinaryDiffEq v4.16.3
  [91a5bcdd] Plots v0.21.0
  [f2b01f46] Roots v0.7.3

```

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [October 25, 2018, 10:45pm UTC](https://discourse.julialang.org/t/error-when-trying-to-install-jump/16808/4 "2018-10-25T22:45:36Z")

</div>

Ok, that is weird. I can `pkg> add JuMP` without a problem with the same package state as you have:

```julia
(v1) pkg> st
    Status `~/.julia/environments/v1.0/Project.toml`
  [c52e3926] Atom v0.7.8
  [49dc2e85] Calculus v0.4.1
  [0c46a032] DifferentialEquations v5.3.1
  [28b8d3ca] GR v0.35.0
  [e5e0dc1b] Juno v0.5.3
  [429524aa] Optim v0.17.1
  [1dea7af3] OrdinaryDiffEq v4.16.3
  [91a5bcdd] Plots v0.21.0
  [f2b01f46] Roots v0.7.3

(v1) pkg> add JuMP
 Resolving package versions...
  Updating `~/.julia/environments/v1.0/Project.toml`
  [4076af6c] + JuMP v0.18.4
  Updating `~/.julia/environments/v1.0/Manifest.toml`
  [f6369f11] ↓ ForwardDiff v0.10.0 ⇒ v0.9.0
  [4076af6c] + JuMP v0.18.4
  [fdba3010] + MathProgBase v0.7.7
  [89212889] + ReverseDiffSparse v0.8.4

```

Can you post the content of `C:\Users\Christian\.julia\environments\v1.0\Project.toml` and `C:\Users\Christian\.julia\environments\v1.0\Manifest.toml` to a gist or something?

---

<div class="post-metadata">

**Author:** ![OvidiusCicero](https://avatars.discourse-cdn.com/v4/letter/o/73ab20/32.png) [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Post date:** [October 25, 2018, 10:49pm UTC](https://discourse.julialang.org/t/error-when-trying-to-install-jump/16808/5 "2018-10-25T22:49:46Z")

</div>

[Manifest.toml](https://gist.github.com/OvidiusCicero/aa853249ad1dd60ceb6ff3ab6061e25b)  
[Project.toml](https://gist.github.com/OvidiusCicero/fd63aa00c957f6907582fedf0478dcb5)  
Edit: these are before uninstalling ForwardDiff

Thanks for your patience by the way

Edit:  
The following worked:

- uninstall ForwardDiff
- install JuMP

But now I’m stuck with ForwardDiff 0.9 instead of 0.10

```
(v1.0) pkg> remove ForwardDiff
  Updating `C:\Users\Christian\.julia\environments\v1.0\Project.toml`
  [f6369f11] - ForwardDiff v0.10.0
  Updating `C:\Users\Christian\.julia\environments\v1.0\Manifest.toml`
 [no changes]

(v1.0) pkg> add JuMP
  Updating registry at `C:\Users\Christian\.julia\registries\General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
 Installed BoundaryValueDiffEq ─ v2.2.1
 Installed MathProgBase ──────── v0.7.7
 Installed ReverseDiffSparse ─── v0.8.4
 Installed JuMP ──────────────── v0.18.4
  Updating `C:\Users\Christian\.julia\environments\v1.0\Project.toml`
  [4076af6c] + JuMP v0.18.4
  Updating `C:\Users\Christian\.julia\environments\v1.0\Manifest.toml`
  [764a87c0] ↑ BoundaryValueDiffEq v2.2.0 ⇒ v2.2.1
  [f6369f11] ↓ ForwardDiff v0.10.0 ⇒ v0.9.0
  [4076af6c] + JuMP v0.18.4
  [fdba3010] + MathProgBase v0.7.7
  [89212889] + ReverseDiffSparse v0.8.4

(v1.0) pkg> add ForwardDiff
 Resolving package versions...
  Updating `C:\Users\Christian\.julia\environments\v1.0\Project.toml`
  [f6369f11] + ForwardDiff v0.9.0
  Updating `C:\Users\Christian\.julia\environments\v1.0\Manifest.toml`
 [no changes]

```

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [October 25, 2018, 11:01pm UTC](https://discourse.julialang.org/t/error-when-trying-to-install-jump/16808/6 "2018-10-25T23:01:48Z")

</div>

Thanks. `pkg> rm ForwardDiff; add JuMP; add ForwardDiff` seems to work. I wonder why Pkg refuses to downgrade ForwardDiff, maybe because it is installed explicitly? @kristoffer.carlsson?

---

<div class="post-metadata">

**Author:** ![OvidiusCicero](https://avatars.discourse-cdn.com/v4/letter/o/73ab20/32.png) [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Post date:** [October 25, 2018, 11:05pm UTC](https://discourse.julialang.org/t/error-when-trying-to-install-jump/16808/7 "2018-10-25T23:05:31Z")

</div>

Just out of interest: Why does it even try to downgrade ForwardDiff? I don’t need to say that this is not optimal and it should not be necessary (I know of the new package environements that Julia 1.0 has but still…)

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [October 25, 2018, 11:07pm UTC](https://discourse.julialang.org/t/error-when-trying-to-install-jump/16808/8 "2018-10-25T23:07:05Z")

</div>

> [@OvidiusCicero](#):
>
> Why does it even try to downgrade ForwardDiff?

Because JuMP has that as a requirement: [https://github.com/JuliaRegistries/General/blob/996cdd63bdf8de37d4713fe67d96e0ccef21c499/J/JuMP/Compat.toml#L62](https://github.com/JuliaRegistries/General/blob/996cdd63bdf8de37d4713fe67d96e0ccef21c499/J/JuMP/Compat.toml#L62) for some reason.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [October 26, 2018, 12:29am UTC](https://discourse.julialang.org/t/error-when-trying-to-install-jump/16808/9 "2018-10-26T00:29:12Z")

</div>

[https://github.com/JuliaLang/Pkg.jl/issues/110](https://github.com/JuliaLang/Pkg.jl/issues/110)
