# JuMP not updating to latest version

**URL:** <https://discourse.julialang.org/t/jump-not-updating-to-latest-version/37770>\
**Category:** Optimization (Mathematical)\
**Tags:** jump\
**Created:** [April 17, 2020, 3:58pm UTC](https://discourse.julialang.org/t/jump-not-updating-to-latest-version/37770 "2020-04-17T15:58:45Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![cby](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@cby](https://discourse.julialang.org/u/cby)\
**Post date:** [April 17, 2020, 3:58pm UTC](https://discourse.julialang.org/t/jump-not-updating-to-latest-version/37770/1 "2020-04-17T15:58:45Z")

</div>

When I call `pkg> update JuMP`, I only get version v0.19.2, while the latest stable release listed at [Juliaopt.org](https://www.juliaopt.org/JuMP.jl/stable/) is v0.21. I’d like to use some features that started in v0.20.

---

<div class="post-metadata">

**Author:** ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Post date:** [April 17, 2020, 4:03pm UTC](https://discourse.julialang.org/t/jump-not-updating-to-latest-version/37770/2 "2020-04-17T16:03:50Z")

</div>

The problem is probably that you have some older version of other package (like a solver) that depends on 0.19 and therefore disallows the update.

I think the easiest way to debug is to do:

```julia
pkg> add JuMP@0.21

```

And see the error that will probably arise. The error will tell which packages conflict which this version of JuMP.

---

<div class="post-metadata">

**Author:** ![cby](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@cby](https://discourse.julialang.org/u/cby)\
**Post date:** [April 17, 2020, 4:43pm UTC](https://discourse.julialang.org/t/jump-not-updating-to-latest-version/37770/3 "2020-04-17T16:43:24Z")

</div>

Thanks, that does seem to be what’s going on. I’ve updated the Gurobi package and still get the error that it’s incompatible. However, Gurobi is on the list of solvers in the installation guide for JuMP v0.21.

```julia
(v1.1) pkg> add JuMP@0.21
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package MathOptInterface [b8f27783]:
 MathOptInterface [b8f27783] log:
 ├─possible versions are: [0.5.0-0.5.1, 0.6.0-0.6.4, 0.7.0, 0.8.0-0.8.4, 0.9.0-0.9.13] or uninstalled
 ├─restricted by compatibility requirements with JuMP [4076af6c] to versions: 0.9.10-0.9.13
 │ └─JuMP [4076af6c] log:
 │ ├─possible versions are: [0.18.3-0.18.6, 0.19.0-0.19.2, 0.20.0-0.20.1, 0.21.0-0.21.2] or uninstalled
 │ └─restricted to versions 0.21 by an explicit requirement, leaving only versions 0.21.0-0.21.2
 └─restricted by compatibility requirements with LinQuadOptInterface [f8899e07] to versions: 0.8.0-0.8.4 — no versions left
   └─LinQuadOptInterface [f8899e07] log:
     ├─possible versions are: [0.3.0-0.3.1, 0.4.0-0.4.3, 0.5.0, 0.6.0] or uninstalled
     └─restricted by compatibility requirements with Gurobi [2e9cd046] to versions: 0.6.0
       └─Gurobi [2e9cd046] log:
         ├─possible versions are: [0.5.0-0.5.9, 0.6.0, 0.7.0-0.7.6] or uninstalled
         └─restricted to versions 0.6.0 by an explicit requirement, leaving only versions 0.6.0

```

---

<div class="post-metadata">

**Author:** ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Post date:** [April 17, 2020, 4:54pm UTC](https://discourse.julialang.org/t/jump-not-updating-to-latest-version/37770/4 "2020-04-17T16:54:41Z")

</div>

If you read the output carefully, you will see that:

- You seem to have restricted `Gurobi` to version `0.6.0` that is NOT the last version of `Gurobi.jl` package (0.7.6).
- The problem is that `LinQuadOptInterface` is restricting the versions of `MathOptInterface`, `LinQuadOptInterface` seems to have been inherited from an older state of your environment, it is not needed for the last versions of `JuMP` and `Gurobi`, do you need it?

---

<div class="post-metadata">

**Author:** ![cby](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@cby](https://discourse.julialang.org/u/cby)\
**Post date:** [April 17, 2020, 5:26pm UTC](https://discourse.julialang.org/t/jump-not-updating-to-latest-version/37770/5 "2020-04-17T17:26:59Z")

</div>

I didn’t specifically install `LinQuadOptInterface` - presumably it came with Gurobi or another solver package. I’m not trying to restrict any packages to certain versions and don’t understand what I should be doing to resolve this.

---

<div class="post-metadata">

**Author:** ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Post date:** [April 17, 2020, 5:42pm UTC](https://discourse.julialang.org/t/jump-not-updating-to-latest-version/37770/6 "2020-04-17T17:42:34Z")

</div>

Delete `LinQuadOptInterface` and try again:

```julia
Pkg> rm LinQuadOptInterface
Pkg> add JuMP@0.21

```

If it yet do not work, the dirty but fast way (i.e., should not be necessary, but if you are a begginer it is easier than trying to read the output, that I admit, is a little bit arcane) for solving it is removing all packages in your environment and installing just what you need, i.e.:

```julia
Pkg> st # look at everything you have installed
Pkg> rm ... # names of everything you have installed
Pkg> add JuMP@0.21 Gurobi # and any other packages you are sure you need

```

---

<div class="post-metadata">

**Author:** ![cby](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@cby](https://discourse.julialang.org/u/cby)\
**Post date:** [April 17, 2020, 5:55pm UTC](https://discourse.julialang.org/t/jump-not-updating-to-latest-version/37770/7 "2020-04-17T17:55:54Z")

</div>

I think there must be more to it. `LinQuadOptInterface` is definitely used by Gurobi and other solvers I use ([see here](https://github.com/JuliaOpt/LinQuadOptInterface.jl)), but it’s not something I can see the status of or remove.

```julia
pkg> remove LinQuadOptInterface
┌ Warning: `LinQuadOptInterface` not in project, ignoring
└ @ Pkg.Operations /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1131
[ Info: No changes

```

---

<div class="post-metadata">

**Author:** ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Post date:** [April 17, 2020, 6:39pm UTC](https://discourse.julialang.org/t/jump-not-updating-to-latest-version/37770/8 "2020-04-17T18:39:01Z")

</div>

If you [see here](https://github.com/JuliaOpt/Gurobi.jl/blob/master/Project.toml), `LinQuadOptInterface` is not directly used by the last version of `Gurobi.jl`, more than that, I have an environment with `JuMP` and `Gurobi` installed and:

```julia
(@v1.4) pkg> activate .
(examples) pkg> st -m
[...]
  [2e9cd046] Gurobi v0.7.6
[...]
  [4076af6c] JuMP v0.21.2
[...]
  [b77e0a4c] InteractiveUtils 
  [76f85450] LibGit2 
  [8f399da3] Libdl 
  [37e2e46d] LinearAlgebra 
  [56ddb016] Logging 
  [d6f4376e] Markdown 

```

Note that the list is complete (option `-m` is being used) and it is ordered by alphabetical order, so I have no package `LinQuadOptInterface` installed.

Did you try to remove everything (except `LinQuadOptInterface` as it seems to not exist) and reinstall just what you need? More than that, try to add `Gurobi@0.7.6` to your project to check if it is allowed. You can also execute `gc` before (garbage collector of the Pkg) to remove unused packages, with any luck it will be able to remove `LinQuadOptInterface` that seems to be on limbo.

---

<div class="post-metadata">

**Author:** ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Post date:** [April 17, 2020, 6:46pm UTC](https://discourse.julialang.org/t/jump-not-updating-to-latest-version/37770/9 "2020-04-17T18:46:43Z")

</div>

If everything else fails, you can always start again from a fresh `~/.julia`, make a backup of your old environment (`mv ~/.julia ~/.julia_old`), delete your project Manifest file (`rm Manifest.toml`), and instantiate the project again:

```julia
julia> import Pkg
julia> Pkg.activate(".")
julia> Pkg.instantiate()

```

But it is also nice to check if your `Project.toml` has no `[compat]` section forcing the use of specific versions, nor it does mention `LinQuadOptInterface`.

---

<div class="post-metadata">

**Author:** ![cby](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@cby](https://discourse.julialang.org/u/cby)\
**Post date:** [April 21, 2020, 6:47pm UTC](https://discourse.julialang.org/t/jump-not-updating-to-latest-version/37770/10 "2020-04-21T18:47:57Z")

</div>

What worked for me in the end was removing Gurobi, updating JuMP (which then did update to v21), and then re-adding Gurobi (which installed as v.0.7.6).

---

<div class="post-metadata">

**Author:** ![Dyranne](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@Dyranne](https://discourse.julialang.org/u/Dyranne)\
**Post date:** [May 18, 2021, 9:00am UTC](https://discourse.julialang.org/t/jump-not-updating-to-latest-version/37770/11 "2021-05-18T09:00:18Z")

</div>

hi, i’d like to use Gurobiv0.6.0 but i got something wrong

````julia
   Building Gurobi → `C:\Users\duyanran\.julia\packages\Gurobi\dlJep\deps\build.log`
┌ Error: Error building `Gurobi`: 
│ ERROR: LoadError: Unable to locate Gurobi installation. Note that this must be downloaded separately from gurobi.com
│ Stacktrace:
│ [1] error(::String) at .\error.jl:33
│ [2] top-level scope at C:\Users\duyanran\.julia\packages\Gurobi\dlJep\deps\build.jl:62
│ [3] include(::String) at .\client.jl:439
│ [4] top-level scope at none:5
│ in expression starting at C:\Users\duyanran\.julia\packages\Gurobi\dlJep\deps\build.jl:61
└ @ Pkg.Operations D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:899```

can you tell me which version of Gurobi you install ? i think i should install another version of it ,thanks!!
````

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [May 18, 2021, 8:02pm UTC](https://discourse.julialang.org/t/jump-not-updating-to-latest-version/37770/12 "2021-05-18T20:02:58Z")

</div>

I guess this is to do with your attempts to run Pajarito: [run convex with pajarito？(try to solve misdp with complex variable) · Issue #438 · jump-dev/Convex.jl · GitHub](https://github.com/jump-dev/Convex.jl/issues/438)

You should be able to use `] add Gurobi@0.8` instead. However, you will need an old copy of Gurobi (the solver). One of these should work: Gurobi 8.0, 8.1, or 9.0 (_not_ 9.1).

> <https://github.com/jump-dev/Gurobi.jl/blob/28bbf7be456cb41b042eae53a66fd15b784eab1e/deps/build.jl#L29-L32>

Here are the installation instructions: [GitHub - jump-dev/Gurobi.jl at v0.8.1](https://github.com/jump-dev/Gurobi.jl/tree/v0.8.1#installation)

If you’re still struggling after this, please open a new post, rather than continuing this thread.
