# Cannot install PiecewiseLinearOpt package

**URL:** <https://discourse.julialang.org/t/cannot-install-piecewiselinearopt-package/30170>\
**Category:** New to Julia\
**Tags:** question, package, jump\
**Created:** [October 22, 2019, 12:28pm UTC](https://discourse.julialang.org/t/cannot-install-piecewiselinearopt-package/30170 "2019-10-22T12:28:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kfurmanska](https://avatars.discourse-cdn.com/v4/letter/k/e0b2c6/32.png) [@kfurmanska](https://discourse.julialang.org/u/kfurmanska)\
**Post date:** [October 22, 2019, 12:28pm UTC](https://discourse.julialang.org/t/cannot-install-piecewiselinearopt-package/30170/1 "2019-10-22T12:28:54Z")

</div>

I try to install PiecewiseLinearOpt package, but it gets into conflict with other Julia packages. Firstly, it highlighed JuMP:

```julia
julia> Pkg.add("PiecewiseLinearOpt")
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package PiecewiseLinearOpt [0f51c51e]:
 PiecewiseLinearOpt [0f51c51e] log:
 ├─possible versions are: 0.2.1 or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions 0.2.1
 └─restricted by compatibility requirements with JuMP [4076af6c] to versions: uninstalled — no versions left
   └─JuMP [4076af6c] log:
     ├─possible versions are: [0.18.3-0.18.6, 0.19.0-0.19.2, 0.20.0] or uninstalled
     └─restricted to versions 0.20.0 by an explicit requirement, leaving only versions 0.20.0

```

Following the advice on the topic below, I’ve uninstalled JuMP (although I have version 0.20.0) and tried to install PiecewiseLinearOpt package first, but then it conflicts with other package…

```julia
julia> Pkg.add("PiecewiseLinearOpt")
 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.5] or uninstalled
 ├─restricted by compatibility requirements with PiecewiseLinearOpt [0f51c51e] to versions: 0.8.0-0.8.4
 │ └─PiecewiseLinearOpt [0f51c51e] log:
 │ ├─possible versions are: 0.2.1 or uninstalled
 │ └─restricted to versions * by an explicit requirement, leaving only versions 0.2.1
 └─restricted by compatibility requirements with GLPK [60bf3e95] to versions: 0.9.1-0.9.5 — no versions left
   └─GLPK [60bf3e95] log:
     ├─possible versions are: [0.6.1, 0.7.0, 0.8.0-0.8.3, 0.9.0-0.9.1, 0.10.0, 0.11.0-0.11.4, 0.12.0] or uninstalled
     └─restricted to versions 0.11.4 by an explicit requirement, leaving only versions 0.11.4

```

See the aforementioned topic in here:

> [@Error while adding a package](https://discourse.julialang.org/t/error-while-adding-a-package/24176):
>
> I’m new to Julia, and I’ve installed Atom and a couple of packages already. However when I’ve tried to add PowerModels package, I’ve recieved an error message: ERROR: Unsatisfiable requirements detected for package PowerModels [c36e90e8]: PowerModels [c36e90e8] log: ├─possible versions are: [0.1.0, 0.2.0-0.2.3, 0.3.0-0.3.4, 0.4.0, 0.5.0-0.5.1, 0.6.0-0.6.1, 0.7.0-0.7.2, 0.8.0-0.8.8, 0.9.0-0.9.6] or uninstalled ├─restricted to versions \* by an explicit requirement, leaving only versions [0.1.0, 0…

Is there any safe way to install it instead of removing packages from here and there and installing them back?

I’m working on Windows 10, Julia 1.2.0

---

<div class="post-metadata">

**Author:** ![kfurmanska](https://avatars.discourse-cdn.com/v4/letter/k/e0b2c6/32.png) [@kfurmanska](https://discourse.julialang.org/u/kfurmanska)\
**Post date:** [October 24, 2019, 10:01am UTC](https://discourse.julialang.org/t/cannot-install-piecewiselinearopt-package/30170/2 "2019-10-24T10:01:18Z")

</div>

Eventually I created new environment, installed PiecewiseLinearOpt package first, then JuMP. Everything works fine now.
