# Creating new Julia environment with older version

**URL:** <https://discourse.julialang.org/t/creating-new-julia-environment-with-older-version/116865>\
**Category:** New to Julia\
**Created:** [July 10, 2024, 11:01am UTC](https://discourse.julialang.org/t/creating-new-julia-environment-with-older-version/116865 "2024-07-10T11:01:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Finseth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/john_finseth/32/210036_2.png) [@John\_Finseth](https://discourse.julialang.org/u/John_Finseth)\
**Post date:** [July 10, 2024, 11:01am UTC](https://discourse.julialang.org/t/creating-new-julia-environment-with-older-version/116865/1 "2024-07-10T11:01:09Z")

</div>

I currently have Julia 1.10.4, but I want to run Julia 1.7.3 from within VScode. I installed via juliaup, and my new install location is:  
`"C:\Users\####\.julia\juliaup\julia-1.7.3+0.x64.w64.mingw32\bin\julia.exe"`

Then, via the terminal, I created a new environment

```julia
activate --shared test
"C:\Users\####\.julia\environments\test"
instantiate

```

Now my `manifest.toml` file looks like this:

```julia
# This file is machine-generated - editing it directly is not advised

julia_version = "1.7.3"
manifest_format = "2.0"

[deps]

```

However, when I open a file from within VSCode (And I have `Julia env: test`) and run `Pkg.activate(".")`, it then has `versioninfo()` → Julia 1.10.4.

How do I run Julia 1.7.3 from within VScode? It seems I have it installed with juliaup and I’m in that environment but it still doesn’t work. (I’ve tried explicitly added the julia.exe I have above as executable path but it says that path is not an environment).

I.e. how come when I’m in a 1.7.3 environment it still creates a 1.10 terminal/REPL?

---

<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:** [July 10, 2024, 11:23am UTC](https://discourse.julialang.org/t/creating-new-julia-environment-with-older-version/116865/2 "2024-07-10T11:23:06Z")

</div>

@davidanthoff may correct me, but I don’t think VSCode picks a matching Julia version for a project (yet?), so you’ll have to manually change it in the Julia extension settings.

---

<div class="post-metadata">

**Author:** ![John\_Finseth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/john_finseth/32/210036_2.png) [@John\_Finseth](https://discourse.julialang.org/u/John_Finseth)\
**Post date:** [July 10, 2024, 11:40am UTC](https://discourse.julialang.org/t/creating-new-julia-environment-with-older-version/116865/3 "2024-07-10T11:40:56Z")

</div>

Does that mean changing the environment path as well in the settings.json file?

---

<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:** [July 10, 2024, 11:43am UTC](https://discourse.julialang.org/t/creating-new-julia-environment-with-older-version/116865/4 "2024-07-10T11:43:13Z")

</div>

Wasn’t aware that there was one, I was thinking of this setting:

![image](https://global.discourse-cdn.com/julialang/original/3X/e/f/ef35ab2f28898d44b6512623f1f49ee9852e2914.png)

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [July 10, 2024, 11:53am UTC](https://discourse.julialang.org/t/creating-new-julia-environment-with-older-version/116865/5 "2024-07-10T11:53:30Z")

</div>

Yes, we don’t pick up Julia versions from manifests (yet!).

Best way to do this right now is to put something like `julia +1.7.3` into the field that @nilshg pointed to.
