# Creating fresh environment with latest julia whilst having existing 1.9 enviroment

**URL:** https://discourse.julialang.org/t/creating-fresh-environment-with-latest-julia-whilst-having-existing-1-9-enviroment/118986
**Category:** New to Julia
**Tags:** question, package
**Created:** [September 3, 2024, 11:47am UTC](https://discourse.julialang.org/t/creating-fresh-environment-with-latest-julia-whilst-having-existing-1-9-enviroment/118986 "2024-09-03T11:47:07Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![PyJulia](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@PyJulia](https://discourse.julialang.org/u/PyJulia)
#### Post date: [September 3, 2024, 11:47am UTC](https://discourse.julialang.org/t/creating-fresh-environment-with-latest-julia-whilst-having-existing-1-9-enviroment/118986/1 "2024-09-03T11:47:07Z")

</div>

The first time I installed Julia was a 1.9 environment. I now want to create a new project environment with the latest stable Julia version. I used `juliaup add 1.11` to add the Julia 1.11 environment. Opening a Julia REPL, hitting ] to start the Pkg CLI and running the command `activate fooBar` creates an environment, but it does so using the old 1.9. I looked in the help and in the documentation of juliaup and Pkg but cannot find an explanation of how to make the new project environment make use of the 1.11 version of Julia. Could someone tell me how to do that step-by-step?

NB: I am aware it is possible to update the 1.9 environment to 1.11, but I explicitly do not want to do that. I want a fresh 1.11 environment.

---

<div class="post-metadata">

### Author: ![abraemer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abraemer/32/51403_2.png) [@abraemer](https://discourse.julialang.org/u/abraemer)
#### Post date: [September 3, 2024, 11:49am UTC](https://discourse.julialang.org/t/creating-fresh-environment-with-latest-julia-whilst-having-existing-1-9-enviroment/118986/2 "2024-09-03T11:49:33Z")

</div>

You just need to start the correct Julia. This can be done either using `julia +1.11` to explicitly force the version or you can change the default version using `juliaup default +1.11` and afterwards the `julia` command defaults to 1.11

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [September 3, 2024, 5:37pm UTC](https://discourse.julialang.org/t/creating-fresh-environment-with-latest-julia-whilst-having-existing-1-9-enviroment/118986/3 "2024-09-03T17:37:32Z")

</div>

You can also setup per-project default Julia versions using direnv and the `JULIAUP_CHANNEL` environment variable.

---

<div class="post-metadata">

### Author: ![visr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/visr/32/17204_2.png) [@visr](https://discourse.julialang.org/u/visr)
#### Post date: [September 3, 2024, 7:51pm UTC](https://discourse.julialang.org/t/creating-fresh-environment-with-latest-julia-whilst-having-existing-1-9-enviroment/118986/4 "2024-09-03T19:51:10Z")

</div>

Per directory Julia version is also directly supported now with `juliaup override`, see [JuliaLang/juliaup#using-juliaup](https://github.com/JuliaLang/juliaup?tab=readme-ov-file#using-juliaup).

Although VS Code doesn’t take either of these methods into account yet ([#3649](https://github.com/julia-vscode/julia-vscode/issues/3649)).

---

<div class="post-metadata">

### Author: ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)
#### Post date: [September 3, 2024, 8:37pm UTC](https://discourse.julialang.org/t/creating-fresh-environment-with-latest-julia-whilst-having-existing-1-9-enviroment/118986/5 "2024-09-03T20:37:22Z")

</div>

And now you can also rename your `Manifest.toml` file to `Manifest-v1.11.toml` so to have an environment _specific_ for this Julia version.
