# Activating a project with modules already in use

**URL:** <https://discourse.julialang.org/t/activating-a-project-with-modules-already-in-use/21222>\
**Category:** General Usage\
**Tags:** package-manager\
**Created:** [February 26, 2019, 5:58pm UTC](https://discourse.julialang.org/t/activating-a-project-with-modules-already-in-use/21222 "2019-02-26T17:58:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Datseris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datseris/32/13406_2.png) [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Post date:** [February 26, 2019, 5:58pm UTC](https://discourse.julialang.org/t/activating-a-project-with-modules-already-in-use/21222/1 "2019-02-26T17:58:18Z")

</div>

Hello, I have a question. What if I do:

```julia
using Package1, Pkg
Pkg.activate("path")
using Package1

```

What happens if the project I activated in `path` has also a version of `Package1` added and this version is _different_ from the version of the global environment?

If this is answered in some documentation please share it here. I expected the answer to be connected with the docstring of `activate`: [12. API Reference · Pkg.jl](https://julialang.github.io/Pkg.jl/v1/api/#Pkg.activate) or the doc page of “working with environments” : [4. Working with Environments · Pkg.jl](https://julialang.github.io/Pkg.jl/v1/environments/) but I didn’t find something there.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [February 26, 2019, 6:00pm UTC](https://discourse.julialang.org/t/activating-a-project-with-modules-already-in-use/21222/2 "2019-02-26T18:00:43Z")

</div>

Nothing happens. Only the version of a package that is first loaded in any given Julia session will ever be loaded in that session.

---

<div class="post-metadata">

**Author:** ![Datseris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datseris/32/13406_2.png) [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Post date:** [February 26, 2019, 6:01pm UTC](https://discourse.julialang.org/t/activating-a-project-with-modules-already-in-use/21222/3 "2019-02-26T18:01:40Z")

</div>

Okay, I see. Is there a way to “replace” modules then?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [February 26, 2019, 6:04pm UTC](https://discourse.julialang.org/t/activating-a-project-with-modules-already-in-use/21222/4 "2019-02-26T18:04:26Z")

</div>

Sure, you can just evaluated them again (e.g. by re-`include`ing the file that defines them).
