# Force installation of a pkg

**URL:** https://discourse.julialang.org/t/force-installation-of-a-pkg/50089
**Category:** New to Julia
**Created:** [November 13, 2020, 11:59am UTC](https://discourse.julialang.org/t/force-installation-of-a-pkg/50089 "2020-11-13T11:59:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lorrp1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lorrp1/32/17647_2.png) [@lorrp1](https://discourse.julialang.org/u/lorrp1)
#### Post date: [November 13, 2020, 11:59am UTC](https://discourse.julialang.org/t/force-installation-of-a-pkg/50089/1 "2020-11-13T11:59:37Z")

</div>

Hello, im using julia 1.4.2, i have sucefully installed and used ReinforcementLearning.jl then i decided to install  
`Pkg.add("POMDPs"); Pkg.add("QMDP")`

which caused:

```julia
   Updating `~/x/Project.toml`
  [a93abf59] + POMDPs v0.9.1
  [158674fc] ↓ ReinforcementLearning v0.7.0 ⇒ v0.6.0
   Updating `~/x/Manifest.toml`
  [31c24e10] ↓ Distributions v0.24.3 ⇒ v0.23.12
  [d9ec5142] + NamedTupleTools v0.13.7
  [f3bd98c0] + POMDPLinter v0.1.1
  [a93abf59] + POMDPs v0.9.1
  [158674fc] ↓ ReinforcementLearning v0.7.0 ⇒ v0.6.0
  [de1b191a] ↓ ReinforcementLearningCore v0.5.0 ⇒ v0.4.6
  [d607f57d] ↓ ReinforcementLearningZoo v0.2.1 ⇒ v0.1.7

```

now id like to reinstall back the add ReinforcementLearning@0.7.0 even if POMDP does not support it  
i tried updating ReinforcementLearning and removing the pkg that caused the issue:

```julia

rm POMDPs
   Updating `~/x/Project.toml`
  [a93abf59] - POMDPs v0.9.1
   Updating `~/x/Manifest.toml`
 [no changes]

(juliaRL) pkg> add ReinforcementLearning@0.7.0
  Resolving package versions...
ERROR: Unsatisfiable requirements detected for package Distributions [31c24e10]:
 Distributions [31c24e10] log:
 ├─possible versions are: [0.16.0-0.16.4, 0.17.0, 0.18.0, 0.19.1-0.19.2, 0.20.0, 0.21.0-0.21.3, 0.21.5-0.21.12, 0.22.0-0.22.6, 0.23.0-0.23.12, 0.24.0-0.24.3] or uninstalled
 ├─restricted by compatibility requirements with ReinforcementLearningZoo [d607f57d] to versions: 0.24.0-0.24.3
 │ └─ReinforcementLearningZoo [d607f57d] log:
 │ ├─possible versions are: [0.1.0-0.1.7, 0.2.0-0.2.1] or uninstalled
 │ └─restricted by compatibility requirements with ReinforcementLearning [158674fc] to versions: 0.2.1
 │ └─ReinforcementLearning [158674fc] log:
 │ ├─possible versions are: [0.2.0-0.2.1, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.7.0] or uninstalled
 │ └─restricted to versions 0.7.0 by an explicit requirement, leaving only versions 0.7.0
 └─restricted by compatibility requirements with POMDPs [a93abf59] to versions: [0.17.0, 0.18.0, 0.19.1-0.19.2, 0.20.0, 0.21.0-0.21.3, 0.21.5-0.21.12, 0.22.0-0.22.6, 0.23.0-0.23.12] — no versions left
   └─POMDPs [a93abf59] log:
     ├─possible versions are: [0.7.0-0.7.3, 0.8.0-0.8.4, 0.9.0-0.9.1] or uninstalled
     └─restricted by compatibility requirements with QMDP [3aa3ecc9] to versions: 0.9.0-0.9.1
       └─QMDP [3aa3ecc9] log:
         ├─possible versions are: 0.1.5 or uninstalled
         └─restricted to versions * by an explicit requirement, leaving only versions 0.1.5

```

but i still get errors, is there a way to force install ReinforcementLearning and all its requirements like i did at the beginning when i simply used ‘add ReinforcementLearning.jl’ ?

---

<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: [November 13, 2020, 2:20pm UTC](https://discourse.julialang.org/t/force-installation-of-a-pkg/50089/2 "2020-11-13T14:20:20Z")

</div>

Just to confirm you want `POMDPs@0.9.1` and `ReinforcementLearning@0.7.0` to coexist in the same environment? This isn’t really possible, although there are a couploe of things you could do:

- Have separate environments for the two packages, so you can use `ReinforcementLearning` at the latest version in its own environment
- Manually edit the compat bounds of `POMDPs` to include `ReinforcementLearning` version 0.7 - this could of course break `POMDPs` to the extent it relies on things in version 0.6 that changed when `ReinforcementLearning` was updated (which is what the version bounds are for). If this works you could make a PR to `POMDPs` to bump the compat bounds for `ReinforcementLearning`

---

<div class="post-metadata">

### Author: ![lorrp1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lorrp1/32/17647_2.png) [@lorrp1](https://discourse.julialang.org/u/lorrp1)
#### Post date: [November 13, 2020, 5:01pm UTC](https://discourse.julialang.org/t/force-installation-of-a-pkg/50089/3 "2020-11-13T17:01:09Z")

</div>

no i didnt want `POMDPs@0.9.1` with `ReinforcementLearning@0.7.0` together

i have fixed it the error by removing the POMDP from the manifest as well
