# Difficulty installing polyhedra

**URL:** <https://discourse.julialang.org/t/difficulty-installing-polyhedra/60562>\
**Category:** General Usage\
**Tags:** jump\
**Created:** [May 5, 2021, 7:52am UTC](https://discourse.julialang.org/t/difficulty-installing-polyhedra/60562 "2021-05-05T07:52:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![healyp](https://avatars.discourse-cdn.com/v4/letter/h/67e7ee/32.png) [@healyp](https://discourse.julialang.org/u/healyp)\
**Post date:** [May 5, 2021, 7:52am UTC](https://discourse.julialang.org/t/difficulty-installing-polyhedra/60562/1 "2021-05-05T07:52:41Z")

</div>

I am getting a lot of conflicts when I try to install `polyhedra`. If anybody had any leads or suggestions I would be very grateful. Some of the (long) list of conflicts are:

```julia
(@v1.6) pkg> add Polyhedra
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package Polyhedra [67491407]:
 Polyhedra [67491407] log:
 ├─possible versions are: 0.4.0-0.6.14 or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions 0.4.0-0.6.14
 ├─restricted by compatibility requirements with JuMP [4076af6c] to versions: 0.4.0-0.5.8 or uninstalled, leaving only versions: 0.4.0-0.5.8
 │ └─JuMP [4076af6c] log:
 │ ├─possible versions are: 0.18.3-0.21.7 or uninstalled
 │ ├─restricted to versions * by an explicit requirement, leaving only versions 0.18.3-0.21.7
 │ └─restricted by compatibility requirements with MathOptInterface [b8f27783] to versions: 0.18.3-0.20.1 or uninstalled, leaving only versions: 0.18.3-0.20.1
 │ └─MathOptInterface [b8f27783] log:
 │ ├─possible versions are: 0.5.0-0.9.21 or uninstalled
 │ ├─restricted to versions * by an explicit requirement, leaving only versions 0.5.0-0.9.21
 │ ├─restricted by compatibility requirements with Ipopt [b6b21f68] to versions: 0.6.0-0.9.21
   :

```

My julia version is:

```julia
julia> versioninfo()
Julia Version 1.6.0
Commit f9720dc2eb (2021-03-24 12:55 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, sandybridge)

```

---

<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:** [May 5, 2021, 9:09am UTC](https://discourse.julialang.org/t/difficulty-installing-polyhedra/60562/2 "2021-05-05T09:09:05Z")

</div>

I notice you are trying to install `Polyhedra` in your default environment - don’t do this, but rather create a project specific environment that only includes the packages you actually need for the specifc thing you’re doing. This is generally best practice as it minimizes versioning conflicts.

Now of course it might be possible that there are two packages you need at the same time which are actually incompatible, but this will be easier to diagnose if you’re in a fresh environment with only those packages in.

The relevant documentation is here: [4. Working with Environments · Pkg.jl](https://pkgdocs.julialang.org/v1/environments/)

---

<div class="post-metadata">

**Author:** ![healyp](https://avatars.discourse-cdn.com/v4/letter/h/67e7ee/32.png) [@healyp](https://discourse.julialang.org/u/healyp)\
**Post date:** [May 5, 2021, 7:19pm UTC](https://discourse.julialang.org/t/difficulty-installing-polyhedra/60562/3 "2021-05-05T19:19:12Z")

</div>

Thank you. That solved it – and also was the nudge I needed to start learning about project environments.
